I have 2 tables that have sales data, one for 2002, one for 2003.
I would like to combine them to have all the data in one table. The format needs to be like:
Cust, Item, 2002, 2003.
If I have a cust, item that was purchased in both 2002, and 2003 will this show up in the same row? If the customer bought just one of the two year's will this show? ie
Cust, Item, 2002, 2003
A ,A, 1,2
A,B,1,
A,C,,2
There may be cases where the customer only exists in one of the years. Ie. They bought only in 2002 or they only bought in 2003.
Do I need a union query?
Thanks,
vetter
I would like to combine them to have all the data in one table. The format needs to be like:
Cust, Item, 2002, 2003.
If I have a cust, item that was purchased in both 2002, and 2003 will this show up in the same row? If the customer bought just one of the two year's will this show? ie
Cust, Item, 2002, 2003
A ,A, 1,2
A,B,1,
A,C,,2
There may be cases where the customer only exists in one of the years. Ie. They bought only in 2002 or they only bought in 2003.
Do I need a union query?
Thanks,
vetter
Last edited: