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

What is the difference between having and a where in sql?

570


What information is needed to connect sql*plus an oracle server?

583


How to Execute a Package in PL/SQL.?

577


is mysql query is case sensitive? : Sql dba

558


Can two tables have same primary key?

531






What is the difference between alter trigger and drop trigger statements?

599


How do you write an index?

524


What is form and report?

515


what does it mean to have quoted_identifier on? What are the implications of having it off? : Sql dba

525


Is primary key a clustered index?

532


Do triggers have restrictions on the usage of large datatypes, such as long and long raw?

683


what is 'trigger' in sql? : Sql dba

554


how do you know if your mysql server is alive? : Sql dba

592


What is the maximum number of triggers, you can apply on a single table?

539


What can sql server reporting services do?

576