新人求助,谁帮我写几句SQL句子
复制内容到剪贴板
FROM DEPARTMENT INNER JOIN EMPLOYEE ON DEPARTMENT.DEPTNO = EMPLOYEE.WORKDEPT
GROUP BY DEPARTMENT.DEPTNAME;
我现在有这两个table和上面这个代码,代码:
SELECT DEPARTMENT.DEPTNAME, Count(EMPLOYEE.EMPNO) AS [SIZE]FROM DEPARTMENT INNER JOIN EMPLOYEE ON DEPARTMENT.DEPTNO = EMPLOYEE.WORKDEPT
GROUP BY DEPARTMENT.DEPTNAME;
现在需要把没有employee的department也在运行后输出的表格中列举出来, 并且人数(size)那里为0,
1.jpg(535.55 KB)
2011-10-26 22:32
作者: alleni 发布时间: 2011-10-26
还有一张图11111
2.jpg(424.67 KB)
2011-10-26 22:35
作者: alleni 发布时间: 2011-10-26