Interview QuestionsCategory: MySQLHow to find third highest salary in mysql?
bestonetechnologies Staff asked 2 years ago

How to find third highest salary in mysql?

1 Answers
Best Answer
bestonetechnologies Staff answered 2 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

5 + 17 =