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 |
You are doing log shipping due to some reasons it is failing. How you will proceed from there
Explain query editor regions
How many types of built in functions are there in sql server 2012?
How to apply filtering criteria at group level with the having clause in ms sql server?
How to drop an existing stored procedure in ms sql server?
How can I enforce to use particular index?
How is foreign key related to primary key?
What is the difference between system objects and user objects?
Is port 1433 secure?
What is indexing in sql server with example?
What is subquery in sql?
Why is DML provided?
1 Answers Ernst Young, Thomson Reuters,
Oracle (3259)
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)