find 5 max salary sql code example
Example 1: first max salary in sql
SELECT first-name
FROM employees
WHERE salary = (SELECT MAX(salary) FROM employees);
Example 2: how to find top 3 salary in sql
SELECT salary, first_name, last_name FROM employees
ORDER BY salary DESC LIMIT 3;