Suppose I have table A , column id and table B with column A_id . A_id is the id foreign key. Now, if I want to get the entire identifier from A, for which B has a foreign key reference, I can do
SELECT id FROM A JOIN B ON id = A_id
However, how can I select all id from A, where B is not referenced? (without selecting all id and subtracting from this subset above)
source share