Oraclesqlnotin多字段比對示例
select * from (select t2.cadastralno parcelid,t1.pkid taxpayerid,t2.taxtype taxtype,t1.booktype taxpayertype,
t2.cadastralno parcelCadastralno,t2.landuser parcelLanduser,t1.payername taxpayerPayername
from grid_sysdb.bss_taxpayers t1,grid_sysdb.bbs_parcel t2,grid_sysdb.djsw_tddjxx t3
where t3.nsrdzdah = t1.pkid and t1.payername = t2.landuser)
where (parcelid,taxpayerid) not in(select p.parcelid,p.taxpayerid from bss_parceltaxpayerrel p)
not in多個字段