A
Alex
I have feilds Product_ID and TerritoryID in the both tables Table1 and Table2.
Product_ID and TerritoryID is a unique combination.
I'm traying to create a query to get rows from Table1 that don't exist in
the Table2.
For the one field it's easy:
SELECT *
FROM Table1
WHERE (Table1.Product_ID Not In (SELECT Table2.Product_ID FROM Table2));
How could I do it for the both fields to get rows where Table1.Product_ID
and Table1.TerritoryID don't exist in Table2?
Thanks
Product_ID and TerritoryID is a unique combination.
I'm traying to create a query to get rows from Table1 that don't exist in
the Table2.
For the one field it's easy:
SELECT *
FROM Table1
WHERE (Table1.Product_ID Not In (SELECT Table2.Product_ID FROM Table2));
How could I do it for the both fields to get rows where Table1.Product_ID
and Table1.TerritoryID don't exist in Table2?
Thanks