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

536


What are sql functions? Describe in brief different types of sql functions?

487


What is the difference between cluster and non-cluster index?

618


Which join is like an inner join?

525


What is dialect in sql?

527






What are some emotional triggers?

570


What is the difference between numeric and autonumber?

500


Can a foreign key be a duplicate?

506


What is a sql profiler?

592


How to execute a stored procedure?

563


What are the set operators in sql?

557


how to run 'mysql' commands from a batch file? : Sql dba

610


What is implicit cursor in pl sql?

542


Explain unique key in sql.

564


What are types of exception?

538