maximum salary in sql code example
Example 1: how to find max and min salary in sql
SELECT MAX(SALARY) FROM EMPLOYEES
UNION
SELECT MIN(SALARY) FROM EMPLOYEES;
Example 2: max 3 salary in sql
SELECT salary, first_name, last_name FROM employees
ORDER BY salary DESC LIMIT 3;