⑴ 13.列出在每個部門工作的員工數量、平均工資和平均服務期限。
select count(ename) 員工數量,avg(sal) 平均工專資屬,avg(year(SYSDATE())-year(hiredate))from empgroup by emp.deptno;