#2
zcdjt2018-11-12 11:08
|
(select count(*) ShareCount from tblTaskFlowRecord where OperationType in (2,3) and CreateWechatOpenId=c.OpenId group by CreateWechatOpenId) ShareCount--分享量
from (select distinct CreateWechatOpenId from tblTaskFlowRecord) a
join SysUser c on a.CreateWechatOpenId=c.OpenId
left join tblDepartmentRelation d on c.Mobile=d.Phone
只有本站会员才能查看附件,请 登录
怎么把为空的数据统计成一条显示?