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

Answer Posted / praveen marigaddi.

select distinct sal from emp a where 5 >(select count
(distinct sal) from emp where sal>a.sal) order by a.sal desc

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

State the difference along with examples between Oracle 9i, Oracle 10g and Oracle 11i.

790


How to handle a single quote in oracle sql?

784


What is the exact use of Collections?

1891


What is ordinary table in oracle?

825


How to filter out duplications in the returning rows using oracle?

835


What is an external table?

774


What is oracle and what are its different editions?

786


How do I start tns listener?

761


What is a nested table?

810


What is a user role in oracle?

862


what are archived logs?

1936


What is format trigger?

1824


If any one has information regarding interview of NIC (National Informatics Centre),it would be of great help...

1979


hi friends i completed b.com 2004.i have 3y accounting exp. in manufacturing company.now i have completed oracle finance.pls suggest me how will get job in oracle.can i get job in oracle.

2140


Explain the different normalization forms?

809