how to check the 3rd max salary from an employee table?

Answers were Sorted based on User's Feedback



how to check the 3rd max salary from an employee table?..

Answer / manish_patil

select sal from emp_sal where rownum = 3 order by sal desc

Is This Answer Correct ?    6 Yes 9 No

how to check the 3rd max salary from an employee table?..

Answer / tushar

select max(sal) from ( select sal from emp group by sal order by sal) where rownum<4;

Is This Answer Correct ?    0 Yes 3 No

how to check the 3rd max salary from an employee table?..

Answer / nagendra

select min(sal) from emp where sal in( select top 3 sal
from emp order by sal desc)

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More SQL PLSQL Interview Questions

How do I install sql?

0 Answers  


Which sql most popular?

0 Answers  


Explain the difference between drop and truncate commands in sql?

0 Answers  


What are analytical functions in sql?

0 Answers  


What is differance unique key and primary key.

7 Answers   EDS,






Can we insert in sql function?

0 Answers  


Explain how to use transactions efficiently : transact sql

0 Answers  


Explain foreign key in sql?

0 Answers  


Why use stored procedures?

0 Answers  


Is sql a backend language?

0 Answers  


What is difference between sql function and stored procedure?

0 Answers  


what are the advantages a stored procedure? : Sql dba

0 Answers  


Categories