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 |
liffey
Yak Posting Veteran
58 Posts |
Posted - 2006-10-06 : 12:10:44
|
I need to select names from two different tables and return a single result set.I can do this by creating a temporary table and:doing a select from tbl1 into #temptable doing a select from tbl2 into #temptableselect * from #temptableIs it possible to achieve the same result without using a temporary table?-dw |
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2006-10-06 : 12:12:15
|
You can use a union or union allselect name from tblunion allselect name from tbl2==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
liffey
Yak Posting Veteran
58 Posts |
Posted - 2006-10-06 : 14:56:16
|
Thank you.-dw |
 |
|
|
|
|