# join, group by 사용 select de.DEPT_ID, de.DEPT_NAME_EN, round(avg(em.SAL)) as AVG_SAL from HR_DEPARTMENT de join HR_EMPLOYEES em on de.DEPT_ID = em.DEPT_ID group by de.DEPT_ID order by AVG_SAL desc; # round(): 반올림