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
The Best & Easiest solution:-
SELECT max(salary) FROM salary WHERE salary < ( SELECT max(salary) FROM salary );