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 |
Explain what is lock escalation and what is its purpose?
What is a coalesce function?
Explain different types of BACKUPs avaialabe in SQL Server? Given a particular scenario, how would you go about choosing a backup plan?
Can we call a function that has out parameter in select statement
Tell me what is difference between clustered and non clustered index?
How you would rewrite the sql query to return the customerid sorted numerically?
Can a unique index be created on a column, which contains null?
Is it possible to delete duplicate rows in a table without using a temporary table ?
If a user does not have permission to a table, but has permission to a view created on it, will he be able to view the data in table?
What is the purpose of update statistics and scope_identity() function?
How can you check the level of fragmentation on a table?
Can sql servers link to other servers like oracle?