📜  如何在sql代码示例中获得每个部门的最高工资

📅  最后修改于: 2022-03-11 15:05:14.794000             🧑  作者: Mango

代码示例4
SELECT MAX(SALARY) 'SECOND_MAX' FROM EMPLOYEES
WHERE SALARY <> (SELECT MAX(SALARY) FROM EMPLOYEES);