I have 2 tables (A and B) with the same primary keys. I want to select all row that are in A and not in B. The following works:
select * from A where not exi
I use queries in the format of your second example. A join is usually more scalable than a correlated subquery.