My Sql Query

1. Get Second Maximum Salary In mysql.

SELECT * FROM `employee` WHERE salary = ( SELECT MAX( salary ) FROM employee  WHERE salary < (SELECT MAX(salary) FROM employee)

 

 

Leave A Comment