Queries and SolutionsCategory: MySQLHow to find third highest salary in mysql?
bestonetechnologies Staff asked 9 years ago

How to find third highest salary in mysql?

0 Answers
bestonetechnologies Staff answered 9 years ago

SELECT DISTINCT salary FROM EMP ORDER BY salary DESC LIMIT 2 , 1
OR
select max(salary) from emp where salary < (select max(salary) from emp where salary < (select max(salary) from emp))

Your Answer

15 + 11 =