How to display the names of the employees who earn highest salary in their respective departments?
SELECT ename, sal, deptnoFROM empWHERE sal IN (SELECT MAX(sal) FROM emp GROUP BY deptno );