How to get employee name from employee table which is the
fiveth highest salary of the table

Answer Posted / kavitha nedigunta

select a.ename,a.sal
from(select ename,sal,
dense_rank() over( order by sal desc nulls last) rk
from emp)a
where rk =5;

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is attribute indicator in pl sql?

526


what is data integrity? : Sql dba

596


Explain what is an index?

597


What are the methods of filing?

524


What is the purpose of primary key?

535






How do you truncate?

507


Why do we use cursors?

513


What is record type in pl sql?

550


What do you mean by stored procedures? How do we use it?

526


What is rowtype?

571


What is loop in pl sql?

576


What are the benefits of stored procedures?

535


what is data manipulation language? : Sql dba

531


What is sql analyzer?

545


How do I run a pl sql program?

629