L
LC
Hi,
I'm looking for an easy way of performing the following verification:
Table1
Volume information
--------
SKU_CD Year Territory Jan... Dec
abc 2011 South 10 30
Table2
Price information
---------------------
SKU_CD Year Territory Jan... Dec
abc 2011 South 0.5 0
Which is the easiest method to perform these validations:
A) if volume exists, then price must exist. In Jan there' volume and
price, but in Dec, there's volume but there's not price
B) Pricing table can have more rows than volume table. I only want to
display Volume table information (SKU, year, territory) and the
corresponding matching price.
C) there can be prices that are not in the catalog. I have to
construct another query showing which products (volume table) don't
have a corresponding price associated.
Note: combination of SKU, year and territory fields is unique in both
tables.
Any help will be appreciated.
Regards
I'm looking for an easy way of performing the following verification:
Table1
Volume information
--------
SKU_CD Year Territory Jan... Dec
abc 2011 South 10 30
Table2
Price information
---------------------
SKU_CD Year Territory Jan... Dec
abc 2011 South 0.5 0
Which is the easiest method to perform these validations:
A) if volume exists, then price must exist. In Jan there' volume and
price, but in Dec, there's volume but there's not price
B) Pricing table can have more rows than volume table. I only want to
display Volume table information (SKU, year, territory) and the
corresponding matching price.
C) there can be prices that are not in the catalog. I have to
construct another query showing which products (volume table) don't
have a corresponding price associated.
Note: combination of SKU, year and territory fields is unique in both
tables.
Any help will be appreciated.
Regards