SELECT * FROM TUSER t1
where not exists (SELECT 1 FROM (
select mobile from APP_T_INFO where PASSDATE>to_date('2015-08-20','yyyy-mm-dd')
)t2 where t1.mobilenum = t2.mobile ) and t1.creationtime>to_date('2015-08-20','yyyy-mm-dd')
;
where not exists (SELECT 1 FROM (
select mobile from APP_T_INFO where PASSDATE>to_date('2015-08-20','yyyy-mm-dd')
)t2 where t1.mobilenum = t2.mobile ) and t1.creationtime>to_date('2015-08-20','yyyy-mm-dd')
;
本文提供了一个SQL查询示例,展示了如何从TUSER表中选择记录,条件为:记录不存在于指定日期之后的APP_T_INFO表中,并且创建时间晚于指定日期。
761

被折叠的 条评论
为什么被折叠?



