A
Amir
Hi!
I have 2 tables:
tblReceiptEvents:
ReceiptNumber
ProductKeyInReceipt
Diameter
DeliveryPageNumber
QuantityInReceipt
tblDeliveryPagesEvents
DeliveryPageNumber
ProductInDeliveryPage
Diameter
QuantityInDeliveryPage
I want to find differences between the summed quantities of products in both
tables.
Restrictions:
1. Differences should be in "equivalent" delivery pages and receipts (means:
the records which are compared should have the same DeliveryPageNumber).
2. Query should treat products with different diameters as different
products (I don't want to compare 2" tube to 3" tube because these are
different products..).
3. In case a product appears only in one table ("null") I want to treat it's
quantity as 0 (NZ etc..).
You might simplify the question to the case where i'm looking only
differences to one of the tables, if it makes the solution easier. This is
good enough for me.
I've tried to solve that but got wrong answers one after another.. Maby too
much for my little brain..
I'll be greateful if you could help me..
Kind Regards,
Amir.
I have 2 tables:
tblReceiptEvents:
ReceiptNumber
ProductKeyInReceipt
Diameter
DeliveryPageNumber
QuantityInReceipt
tblDeliveryPagesEvents
DeliveryPageNumber
ProductInDeliveryPage
Diameter
QuantityInDeliveryPage
I want to find differences between the summed quantities of products in both
tables.
Restrictions:
1. Differences should be in "equivalent" delivery pages and receipts (means:
the records which are compared should have the same DeliveryPageNumber).
2. Query should treat products with different diameters as different
products (I don't want to compare 2" tube to 3" tube because these are
different products..).
3. In case a product appears only in one table ("null") I want to treat it's
quantity as 0 (NZ etc..).
You might simplify the question to the case where i'm looking only
differences to one of the tables, if it makes the solution easier. This is
good enough for me.
I've tried to solve that but got wrong answers one after another.. Maby too
much for my little brain..
I'll be greateful if you could help me..
Kind Regards,
Amir.