SQL存在一个表而不在还有一个表中的数据
生活随笔
收集整理的這篇文章主要介紹了
SQL存在一个表而不在还有一个表中的数据
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
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='正常結(jié)束' then 3 else 0 end status from reception_flow a
where (1=1)
and (a.oastate='正常結(jié)束' or a.oastate='反饋中' or a.oastate='已反饋')
and (select count(1) as num from technology_support s where s.oacode=a.oacode)=0
轉(zhuǎn)載于:https://www.cnblogs.com/yutingliuyl/p/6773111.html
總結(jié)
以上是生活随笔為你收集整理的SQL存在一个表而不在还有一个表中的数据的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 小金登陆游戏
- 下一篇: 江苏联合阿里云启动“1+30+300”工