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

How do you pronounce sql?

727


Explain what is a subquery ?

852


What is foreign key sql?

748


What do you mean by stored procedures?

732


Why is nosql good?

777






What is the use of <> sql?

738


how to escape special characters in sql statements? : Sql dba

713


What are the types of variables use in pl sql?

689


Can a composite key be null?

713


What is trigger in pl sql with examples?

720


How do I run a pl sql program?

802


define sql delete statement ? : Sql dba

745


What are operators available in sql?

782


How do I start pl sql?

668


what happens if null values are involved in expressions? : Sql dba

735