hw you create table in sql using existing table and variable
should be in specific order given ex : in old table empid
empname empsal empage empbirthdate empaddrs like is there in
new table we need it as EX: exmpname empage empaddrs empid
empbirthdate like we want hw we create this as a table not
view or nt reporting
Answers were Sorted based on User's Feedback
Answer / raj sekhar
select empname,empage,empaddrs,empid,empbirthdate into
newemptable from oldemptable
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / abhinay
select * into table_name from destination_table_name where 1=0
| Is This Answer Correct ? | 0 Yes | 3 No |
How to find the login name linked to a given user name?
Difference between report and query parameter.
Would it be a good idea to create an index on a table that always contains 10 records? Why or why not?
How to Display, Amount of Disk Activity Generated by Transact-SQL Statements?
What the different types of Replication and why are they used?
How will you hide an attribute? : sql server analysis services, ssas
What is change data capture (cdc) feature?
Why use identity in sql server?
How can you see what type of locks used?
What is updatable resultset?
How to use copy and concatenate commands in SQL?
What types of Joins are possible with Sql Server?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)