I am trying to eliminate only records where both fields match the given values from another table.
SELECT CODE, NUM
FROM TABLE_A
WHERE (CODE not in (SELECT CODE FROM TABLE_B) AND NUM not in (SELECT NUM FROM TABLE_B))
However this seems to eliminate ALL records that have either of these values. I need to eliminate only the records that have both matching a given record from TABLE2. An OR seems counter-intuitive here?