Hi all
I have 2 queries, they both have the same amount of fields (Field A has the products name, and field 2 has the sum total of products bought). The data for each of these tables comes from different sources.
Here's my problem I want to be able to take the results of 2 queries and find any differences in the data.
eg
QRY 1 QRY2 Diff
Product Amount Product Amount
Cars 50 Cars 20 30
I've tried the following:
SELECT QRY1.Amount-QRY2.Amount AS Diffs, QRY1.PRODUCT
FROM QRY1, QRY2
WHERE QRY1.Product=QRY2.Product;
This works, but if one of the products doesn't show on a table, then it doesn't select the product at all. What I need is for the diff to show.
Does this make any sense & can anyone help me
Thanks
JON
I have 2 queries, they both have the same amount of fields (Field A has the products name, and field 2 has the sum total of products bought). The data for each of these tables comes from different sources.
Here's my problem I want to be able to take the results of 2 queries and find any differences in the data.
eg
QRY 1 QRY2 Diff
Product Amount Product Amount
Cars 50 Cars 20 30
I've tried the following:
SELECT QRY1.Amount-QRY2.Amount AS Diffs, QRY1.PRODUCT
FROM QRY1, QRY2
WHERE QRY1.Product=QRY2.Product;
This works, but if one of the products doesn't show on a table, then it doesn't select the product at all. What I need is for the diff to show.
Does this make any sense & can anyone help me
Thanks
JON