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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 sql question on unions..shouldn't be too bad.

Author  Topic 

sqlbrahzilla
Starting Member

7 Posts

Posted - 2015-02-26 : 19:48:05
going to reopen when i have a better summary / output.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2015-02-26 : 19:56:49
Add an additional column to indicate which result set it's from: SELECT ..., 1 AS WhichResultSet...UNION SELECT ..., 2...

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

sqlbrahzilla
Starting Member

7 Posts

Posted - 2015-02-26 : 19:59:56
Understand the concept of your logic, but can you show me how that would line up with the existing syntax without giving me an error? The reason I ask is i tried that earlier and just couldn't get it to run.
Go to Top of Page
   

- Advertisement -