---有充值记录,也有消费记录,但是无售卡记录,怎么查
select 卡号 from 充值表 a
where exists(select * from 消费表 where 卡号=a.卡号)
and not exists(select * from 售卡表 where 卡号=a.卡号)
select 卡号 from 充值表 a
where exists(select * from 消费表 where 卡号=a.卡号)
and not exists(select * from 售卡表 where 卡号=a.卡号)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货