posted 9 years ago
Your statement 3 is a good attempt, but not completely correct.
If your table1 has multiple entries for the same pair of a product_code & currency_code combination, you could use 'where exists':
If the combination product_code & currency_code is unique in table1, then you can use a simple inner join
If it is guaranteed that you always have the product_code & currency_code combinations from table2 available in table1, you can just run the query without using table1
OCUP UML fundamental and ITIL foundation