SELECT *
FROM taba
WHERE codc NOT IN (SELECT codc
FROM tabb
WHERE modulo = 'A')
dovrebbe essere questo