SQL统计部门人数,人数为0的部门也要显示出来

  相同点:它们都以一张部门表(或类别表),其它表都有部门编号DepartmentID(类别编号)html 案例一:一张表post  select c.DepartmentID,c.DepartmentName, t.Num AS '人员数量' from T_Department as c  left join (select DepartmentID,COUNT(*) AS Num from T
相关文章
相关标签/搜索