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

Answer Posted / naresh

select salary from (select distinct(salary) from employee
oraderby salary desc) where rownum<=5;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we solve sql error: ora-00904: invalid identifier?

699


what are set operators in sql? : Sql dba

538


Who is the owner of mysql database?

553


What are predefined functions in sql?

535


what is bcp? When does it used? : Sql dba

526






how would you get the current date in mysql? : Sql dba

552


How do I run a script in sql developer?

497


How do temporal tables work?

521


What are the types of variables use in pl sql?

514


What are two statement types in sql?

540


How does an execution block start and end in pl sql?

502


Is join same as left join?

535


What is the difference between mdf and ndf files?

573


What is the use of stored procedures?

519


What is sql deadlock?

567