码迷,mamicode.com
首页 > 数据库 > 详细

Oracle sql not in 多字段比对示例

时间:2014-09-14 12:55:47      阅读:179      评论:0      收藏:0      [点我收藏+]

标签:sql

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多个字段

Oracle sql not in 多字段比对示例

标签:sql

原文地址:http://blog.csdn.net/songhfu/article/details/39268049

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!