Search
Thursday, April 3, 2008
merging 2 tables each containing the same columns in sql
I have two tables, each containing the same columns: one containing 1000 rows and one with 800 rows. How can I create a third table which is a merge of the other two and ensuring there are no duplicates
===
Insert into table3
select * from table1
union
select * from table2
===
if there are no duplicate use: unionall
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment