oracle中的差集操作
现在有两张表:
两张表的外键是djxh,现在要排除dj_nsrxx表里的数据中有投资方的证件类型是102的(只要有一个投资方的证件类型是102就排除dj_nsrxx里所在的数据)
select a.* from dj_nsrxx a,dj_tzfxx b where a.djxh=b.djxh
minus
select a.* from dj_nsrxx a,dj_tzfxx b where a.djxh=b.djxh and b.tzfsfzjlx_dm='102'