select * from A where not exists(select 1 from B where AID=a.ID)