sql - multiple layers of correlated subqueries
问题 I have table A, B and C I want to return all entries in table A that do not exist in table B and of that list do not exist in table C. select * from table_A as a where not exists (select 1 from table_B as b where a.id = b.id) this gives me the first result of entries in A that are not in B. But now I want only those entries of this result that are also not in C. I tried flavours of: select * from table_A as a where not exists (select 1 from table_B as b where a.id = b.id) AND where not exists