I have a select query that I am trying to get all id's from table 1 that don't also exist in two fields from table 2.
SELECT FROM table1
WHERE document_id NOT IN (SELECT document_id1, document_id2 FROM table2)
The above doesn't seem to work unless I remove one of the fields (document_id1, document_id2). If only 1 field is in the NOT IN portion of the select it works. However, I need it to check both fields and not return any id's from table 1 that exist in either field in table 2. Is this possible? Or, is there another way?