SyntaxFix
Write A Post
Hire A Developer
Questions
SELECT DISTINCT Salary FROM emp ORDER BY salary DESC LIMIT 1 , 1
This query will give second highest salary of the duplicate records as well.