⑴ 13.列出在每个部门工作的员工数量、平均工资和平均服务期限。
select count(ename) 员工数量,avg(sal) 平均工专资属,avg(year(SYSDATE())-year(hiredate))from empgroup by emp.deptno;