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

Can sql servers link to other servers?

0 Answers  


how to generate XML out of QUERY?

1 Answers   McAfee,


How will you find out if there are expensive SQL statements running or not?

0 Answers   Atos Origin,


What is the purpose of data source?

0 Answers  


How can you ensure that the database and sql server based application perform well?

0 Answers  






Explain what are the restrictions that views have to follow? : SQL Server Architecture

0 Answers  


What is Primary key and foreign key? Give an example

4 Answers   TCS,


Explain about Joins?

0 Answers   Infosys,


What is row_number () and partition by in sql server?

0 Answers  


What is triggers and its types?

0 Answers  


Can we use where clause with group by?

0 Answers  


Will count(column) include columns with null values in its count?

0 Answers  


Categories