1. Get Second Maximum Salary In mysql.

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

 

 

0

Leave a Reply

Your email address will not be published.
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>