Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Union Query - Need Separate Columns from Each Table

$
0
0
Good afternoon:

I have a working UNION query combining the contents of two tables into one query. I have added a field to specifiy which table the data has come from. However, I need the data to have it's OWN field rather than combine into one. For example

PropertyID Value1

are my current fields. I would like the query to output

Property ID.Table1 Property ID.Table 2 Value1.Table1 Value1.Table2

Additionally, if the property ID matches, I need it to be all in one record.

Any thoughts on how to achieve this?

Any help will be greatly appreciated. I have wasted hours working on this and have now reached out to the experts!

Fondly
Tanya S.

Viewing all articles
Browse latest Browse all 13329

Trending Articles