Suppose that you are given the following simple database table called Employee that has 2 columns named Employee ID and Salary:
Employee Employee ID S
Here is another solution which uses sub query but instead of IN clause it uses < operator
SELECT MAX(Salary) From Employees WHERE Salary < ( SELECT Max(Salary) FROM Employees);