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 / siva
insert into T1
select *from t2
union/union all (without duplicates/with duplicates )
select *from t3
union/union all
select *from t4
.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why normalization is used?
How to convert binary strings into integers in ms sql server?
How many databases Microsoft SQL server provides?
What changes in the front end code is needed if mirroring is implemented for the high availability? : sql server database administration
What are the various editions of sql server 2017 that are available in the market?
What are the types of sql server?
How to make conditional sum in ssrs?
What samples and sample databases are provided by microsoft?
What is partitioned view?
What is self join in sql server joins?
What are scalar functions?
Explain what is the use of custom fields in report?
Why variables called the most powerful component of ssis?
Explain the difference between function and stored procedure?
Why do we use trigger?