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 |
What is the difference between indexing and hashing?
What do you understand by physical_only option in dbcc checkdb?
How will u test the stroded procedures and functions? difference between SP and Triggers
Explain relational data?
What are the types of indexes available with SQL Server?
What is clustered primary key?
what is normalization? Explain different levels of normalization? : Sql server database administration
what stored procedure would you use to view lock information? : Sql server administration
What is the difference between a check constraint and a rule?
What is 'write-ahead log' in sql server 2000 ?
explain different types of backups avaialabe in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration
How to handle error or exception in sql?
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)