codice:
select * from tabellaA
left join tabellaB on tabellaA.id = tabellaB.idA
where tabellaB.idA is null