您的位置:首页 > 数据库

SQL存在一个表而不在另一个表中的数据

2014-08-22 16:40 441 查看
select a.id,a.oacode,a.custid,a.custname,a.xsz,a.salename,a.communicationtheme,a.communicationproperty,a.communicationtime,a.productmanager,'' creator,a.creator oaCreator,a.createdate,case when a.oastate='正常结束' then 3 else 0 end status from reception_flow a
where  (1=1)
and (a.oastate='正常结束' or a.oastate='反馈中' or a.oastate='已反馈')
and (select count(1) as num from technology_support s where s.oacode=a.oacode)=0
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  select sql 数据