📜  如何在sql代码示例中找到最高和最低工资

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

代码示例2
SELECT FIRST_NAME , SALARY
FROM EMPLOYEES
WHERE SALARY IN (SELECT MAX(SALARY)AS RESULT FROM EMPLOYEES
UNION
SELECT MIN(SALARY)AS RESULT FROM EMPLOYEES);