1.Tabloda Olan 2.Tabloda Olmayanları Gösteren SQL Sorgusu

select DISTINCT * 
from WEB_BABS a LEFT JOIN
 mutabakat b 
ON a.TCNO_VERGINO=b.tcno_vergino_ref and a.AY=b.donem AND A.BA_BS=B.ba_bs 
WHERE   A.BA_BS='BA' AND B.id is null 

Hiç yorum yok:

Yorum Gönder