how will I find the first 5 highest salaried employees in
each dept in oracle.

Answer Posted / karthik

select * from (select ename,eno,dept,sal,row_number() over
(partition by dept order by sal desc)top5 from emp) where
top5 <= 5

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When do you get a .pll extension in oracle?

671


What are the differences between char and nchar in oracle?

589


What is the exact use of Collections?

1673


What is oracle used for?

527


Explain oracle insert into command?

622






Explain a private synonyms?

625


What are the data types in oracle?

547


What are the various types of snapshots ?

557


What is literal?

580


Explain table?

643


What is a schema in oracle?

532


We are using Oracle apps with XML publisher.In that,we are facing some problems while giving a Footer in RTF Template.While giving a footer in RTF Template it is Visible in all the pages,but after the PDF is getiing generated,the Footer are Visible on alternate pages only (like on first page ,third page) and so on. Please provide the Solution for getting the Footer on all the pages.

4925


How to use in conditions in oracle?

547


What is oracle open database communication (odbc)?

553


Explain what are the type of synonyms?

573