22,209
社区成员
发帖
与我相关
我的任务
分享
select distinct ITEM_CD from SITEM where USE_YN=1 and ITEM_CD
not in ( select ITEM_CD from table1 where IO_DT between '20110827' and '20111027')
select distinct ITEM_CD from SITEM where USE_YN=1 and ITEM_CD
not in(
select ITEM_CD from table1 where IO_DT between '20110827' and '20111027'
)
select distinct t.ITEM_CD
from SITEM t where t.USE_YN=1 and
not exists
(
select * from table1 where [table1表对应ITEM_CD的字段]=t.ITEM_CD and
IO_DT between '20110827' and '20111027'
)
select distinct ITEM_CD from SITEM where USE_YN=1 and ITEM_CD
not in
(
select ITEM_CD from table1 where IO_DT between '20110827' and '20111027'
)
select distinct ITEM_CD from SITEM a where USE_YN=1 and
not exists
(
select * from table1 where IO_DT between '20110827' and '20111027'
and ITEM_CD = a.ITEM_CD
)