SELECT *
from TAB1 right outer join TAB2 on TAB1.COD1 = TAB2.COD2
where TAB1.FLAG1 IS NULL
dovrebbe funzionare come dici