i have 4 tables.. T1, T2, T3, T4..
these tables have the same structure and they store the
information entered in different years..
T1 stored 2002, T2 stored 2003, T3 stored 2004 and T4 stored
2005..
i want to copy contents in T1 to T2, T2 to T3, T3 to T4 and
T4 to T1..
how do i do that? Temp tables cannot be used..
Answer Posted / madhu sudhan g
Hiii
DELETE T1
OUTPUT DELETED.COLUMN1,DELETED.COLUMN2...
INTO T2
DELETE T2
OUTPUT DELETED.COLUMN1,DELETED.COLUMN2...
INTO T3
DELETE T3
OUTPUT DELETED.COLUMN1,DELETED.COLUMN2...
INTO T4
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can we add our custom code in ssis?
What is resultset concur_updatable?
What is BCP? When does it used in sql server 2012?
Explain the disadvantages/limitation of the cursor?
Can I delete event logs?
my name is sejal I have cleared the sbi clerk exam. I am BCA graduate My favorite subject RDBMS Relational database management system. so please send me rRDBMS related interview questions
What is impersonation? What are the different impersonation options available in ssas? : sql server analysis services, ssas
What are the advantages of user-defined functions over stored procedures in sql server?
How can we call UDF(User Define Function) using C# code in ASP.net ?
what is normalization? : Sql server database administration
What are the Advantages of using CTE in sql server?
How to retrieve error messages using mssql_get_last_message()?
how do you test proper tcp/ip configuration windows machine? : Sql server database administration
Call by value and call by reference in procedure and function, with NOCOPY.
What are the different types of normalization?