The answer to this must be simple, but highlights my lack of knowledge of union queries - help guys!
I have a table with two price lists in it, say 2007 and 2008 price lists. I have two queries (for simpicity) that pull the data into seperate entities, one for each price list. I want to compare the prices from 2007 and 2008. The price list for 07 may have parts in that are not in 08 and vide versa.
I have the following union query that works-ish. The problem is that whereas I get the two columns of prices as required, they are stacked, not side by side.
i.e. I get:
Price - Null
...
then:
Null - Price
...
How do I get them side by side?
I have a table with two price lists in it, say 2007 and 2008 price lists. I have two queries (for simpicity) that pull the data into seperate entities, one for each price list. I want to compare the prices from 2007 and 2008. The price list for 07 may have parts in that are not in 08 and vide versa.
I have the following union query that works-ish. The problem is that whereas I get the two columns of prices as required, they are stacked, not side by side.
i.e. I get:
Price - Null
...
then:
Null - Price
...
Code:
SELECT PartNo,Description,Price as S1,Null as S2 from qry_Set1;
UNION ALL
SELECT PartNo,Description,Null as S1,Price as S2 from qry_Set2;
How do I get them side by side?