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

explain advantages of innodb over myisam. : Sql dba

829


What are the basic sql commands?

746


Why is pl sql used?

688


what is the use of friend function? : Sql dba

727


What is substitution variable?

788






How do I find duplicates in a single column in sql?

733


Is record in oracle pl sql?

696


Is there a pl/sql pragma similar to deterministic, but for the scope of one single sql select?

754


What sql does db2 use?

726


how to create a new table by selecting rows from another table in mysql? : Sql dba

753


what are the differences between get and post methods in form submitting. Give the case where we can use get and we can use post methods? : Sql dba

862


Can a primary key be a foreign key?

750


What are operators available in sql?

782


Why is a trigger used?

695


What is not equal in sql?

697