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 |
|
xrum
Yak Posting Veteran
87 Posts |
Posted - 2010-05-10 : 15:18:47
|
| hi,I am trying to create a union all query, right now it looks something like this:Select id, title, page_id ,content from tblY UNION allSelect id, title, NULL, country from tblXbut i want the results to also include a column that tells me which table the data came from.is it possible?Thanks! |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
xrum
Yak Posting Veteran
87 Posts |
Posted - 2010-05-10 : 15:33:46
|
| that worked, thanks!i tried double quotes before and failed :) |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|
|
|
|