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 trigger in sql?

540


Does a user_objects view have an entry for a trigger?

570


why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba

560


what is the difference difference between procedure and packages

9225


How many clustered indexes can be created on a table?

591






What is primary key sql?

546


Is truncate ddl or dml?

545


What is bind variable in pl sql?

530


Explain character-manipulation functions?

634


What is the maximum rows in csv?

485


How you can copy a file to file content and file to pl/sql table in advance pl/sql?

620


what does it mean to have quoted_identifier on? : Sql dba

679


What is a temp table?

569


What are the properties of a transaction?

564


What is delimiter in pl sql?

582