I have a database with two tables (Table1 and Table2). They both have a common column [ColumnA] which is an nvarchar.
How can I select this column from both tables and return it as a single column in my result set?
So I’m looking for something like:
ColumnA in Table1: a b c ColumnA in Table2: d e f Result set should be: a b c d e f
Also, if you know the contents of Table1 and Table2 will NEVER overlap, you can use UNION ALL in place of UNION instead. Saves a little bit of resources that way.
— Kevin Fairchild