How to find only %th Highest Sal

Answer Posted / ajit

select e.*, rn
from ( select empno, ename, sal, deptno, dense_rank() over ( order by sal desc ) rn
from emp) e
where rn = & rn;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is thread join () in threading?

537


Should I use mbr or gpt?

542


What are the two different parts of the pl/sql packages?

559


What is a primary key sql?

559


What can you do with pl sql?

556






What does 0 mean in sql?

526


what is unique key constraint? : Sql dba

564


Are stored procedures compiled?

522


Explain what is a field in a database and record in a database?

604


What is data abstraction in sql?

510


what is transaction? : Sql dba

530


Can we group by two columns in sql?

501


Explain the structure of pl/sql in brief.

617


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

1556


Why do we use function in pl sql?

553