DELETE FROM A WHERE NOT EXISTS (SELECT * FROM B WHERE A.id = B.id) Ik heb aangenomen dat die kolommen id heten .