select a.id from anagrafe a left join fatture f on (a.id = f.id_anagrafica and month(f.data) = month(now() and year(f.data) = year(now())) where f.id_anagrafica is null

il controllo solo sul mese non mi sembra particolarmente furbo