标题:sql语句查询问题
只看楼主
zcdjt
Rank: 3Rank: 3
等 级:论坛游侠
威 望:4
帖 子:99
专家分:181
注 册:2014-9-9
结帖率:85.71%
 问题点数:0 回复次数:0 
sql语句查询问题
select DepartmentName,SectionOffice,

(select count(*) ShareScore from tblTaskFlowRecord where OperationType in (2, 3) and a.UseWechatOpenId=UseWechatOpenId) ShareCount
我想求详情,但是a.UseWechatOpenId=UseWechatOpenId这个算出来是所有的,请问怎么展开?

from (select distinct UseWechatOpenId from tblTaskFlowRecord a) a
join SysUser c on a.UseWechatOpenId = c.OpenId
left join tblDepartmentRelation d on c.Mobile = d.Phone
搜索更多相关主题的帖子: sql 语句 询问 select from 
2018-11-29 18:25



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-491675-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.051572 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved