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

Answer Posted / mani

select first_name,sal from
(
select first_name,sal from
(
select distinct
sal from employees
order by sal desc
)
where rownum < 5
order by sal
)
where rownum<2;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between union and union all? : Sql dba

548


What are analytical functions in sql?

545


What is set transaction?

583


Explain foreign key in sql?

622


How do I start sql profiler?

561






What is trigger point?

540


Why do we use procedures in sql?

550


What is ttitle and btitle?

576


Does oracle use sql?

516


What steps server process has to take to execute an update statement?

511


what is data control language? : Sql dba

588


How are sql commands classified?

597


What are literals in sql server?

537


what is the syntax used for partition in tsql? : Transact sql

541


What is group function in sql?

541