📜  sql代码示例中的最小和最大薪水和姓名

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

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