17,090
社区成员
发帖
与我相关
我的任务
分享
select aa.kf_caller FROM
(select * from t1 a where to_char(kf_date,'yyyy-mm') = '2009-09') AA,
(select kf_caller from t1 b where to_char(kf_date,'yyyy-mm') = '2009-10' ) BB
WHERE AA.kf_caller=BB.kf_caller(+) and BB.kf_caller IS NULL
select * from t1 where to_char(kf_date,'yyyy-mm') = '2009-09' AND kf_caller NOT exists
(select kf_caller from t1where to_char(kf_date,'yyyy-mm') = '2009-10' )