Find the second highest salary from a table: "Employee" using in not in code example
Example: Find the Second Highest salary of an employee from an employee table
SELECT name, MAX(salary) AS salary
FROM employee
WHERE salary < (SELECT MAX(salary)
FROM employee);