OK ... my brain has given up for the day - lol.
I have 2 tables:
Tbl1 and Tbl2 both have Col1 VarChar(10), Col2 VarChar(10)
I need to find what records in Tbl1 do not exist in Table 2 based on BOTH Col1 AND Col2.
I tried a couple of variations like:
Obviously I am off ... and out of coffee and brain cells.
Thanks
J. Kusch
I have 2 tables:
Tbl1 and Tbl2 both have Col1 VarChar(10), Col2 VarChar(10)
I need to find what records in Tbl1 do not exist in Table 2 based on BOTH Col1 AND Col2.
I tried a couple of variations like:
Code:
select *
from Tbl1
WHERE NOT EXISTS (
SELECT *
FROM Tbl1 as t,
Tbl2as t2
WHERE (t.Col1 = t2.Col1
AND t.Col2 = t2.Col2 )
Obviously I am off ... and out of coffee and brain cells.
Thanks
J. Kusch