作业帮 > 英语 > 作业

1.Give a query for a list of each department(number and name

来源:学生作业帮 编辑:搜搜考试网作业帮 分类:英语作业 时间:2024/08/17 17:47:20
1.Give a query for a list of each department(number and name)with their number of employees.
这是EMP表的问题,2.give a query for a list of each department(number and name) for all department with no employees.
1.Give a query for a list of each department(number and name
select dep.dept_no,dep.name,count(emp.empno) employeeNumber
from ps_department dep,ps_employee emp
where dep.dept_no = emp.dept_no
and dep.current_status = 'Y' /* in use */
and emp.current_status = 'Y' /* in use */
fyi.