Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2007-03-05 : 10:48:53
|
| CWI writes "HelloIs it possible to stack 2 tables so that the results from table one is combined with table 2In this exampleBoth tables have the same fields1st table has 200 lines2nd table has 300 linescombine the 2 tables results in 500 linesThanks" |
|
|
svicky9
Posting Yak Master
232 Posts |
Posted - 2007-03-05 : 10:54:04
|
| select * from table1unionselect * from table2The above query will remove duplicatesselect * from table1union allselect * from table2The above query gives you all records including duplicatesVic |
 |
|
|
|
|
|