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



hw you create table in sql using existing table and variable should be in specific order given ex :..

Answer / raj sekhar

select empname,empage,empaddrs,empid,empbirthdate into
newemptable from oldemptable

Is This Answer Correct ?    4 Yes 1 No

hw you create table in sql using existing table and variable should be in specific order given ex :..

Answer / abhinay

select * into table_name from destination_table_name where 1=0

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More SQL Server Interview Questions

What is the use of “join” in sql server?

0 Answers  


If we drop a table, does it also drop related objects like constraints, indexes, columns, defaults, views, and stored procedures?

1 Answers  


What is Cross Join

3 Answers  


What is clustered primary key?

0 Answers  


What is database architecture? : SQL Server Architecture

0 Answers  






Is sql server is free?

0 Answers  


Do you know how to make remote connection in database?

0 Answers  


What are audit control procedures?

0 Answers   Ernst Young, Thomson Reuters,


Why is DML provided?

1 Answers   Ernst Young, Thomson Reuters,


What does Master database contains?

0 Answers   Abacus,


What are the lambda triggers?

0 Answers  


How will you monitor replication latency in transactional replication? : sql server replication

0 Answers  


Categories