8,497
社区成员
发帖
与我相关
我的任务
分享
select count(*) as num,a.type,b.FullName from [dbo].[Assigneds] a,[dbo].[Depts] b
where a.DeptID=b.ID and [Jbrq]>='2017-10-22' and [Jbrq]<='2017-10-22'
group by b.ID,b.FullName,a.type
from a in Assigneds
from b in Depts
where a.DeptID==b.ID && [Jbrq]>='2017-10-22' && [Jbrq]<='2017-10-22'
group x by new { b.ID,b.FullName,a.type }
select new {num = x.Count(),a.type,b.FullName}