third highest salary in sql using limit code example
Example 1: second max salary in sql
SELECT MAX(SALARY) 'SECOND_MAX' FROM EMPLOYEES
WHERE SALARY <> (SELECT MAX(SALARY) FROM EMPLOYEES);
Example 2: first max salary in sql
SELECT first-name
FROM employees
WHERE salary = (SELECT MAX(salary) FROM employees);