阅读974 返回首页    go 阿里云 go 技术社区[云栖]


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

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

最后更新:2017-04-03 05:40:00

  上一篇:go DataGrid和DataGridComboBoxColumn数据绑定
  下一篇:go poj 2498 StuPId