select deptno,avg(sal)
from emp group by deptno
having avg(sal) =
(select max(avg(sal)) from emp group by deptno);
from emp group by deptno
having avg(sal) =
(select max(avg(sal)) from emp group by deptno);
2018-02-19