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
What happens in oracle commit?
what is the difference between substr and instr function in oracle?
what is Single Byte Overhead...?
How to list all indexes in your schema?
How to use "while" statements in oracle?
How to find out what oracle odbc drivers are installed?
What is concurrency in oracle?
What is java oracle used for?
Illustrate how to determine the amount of physical CPUs a Unix Box possesses (LINUX and/or Solaris).
What is the dynamic sql in oracle?
How do I find the database name in oracle?
How to connect ms access to oracle servers?
What is oracle in java?
How would you best determine why your MVIEW couldnt FAST REFRESH?
How do we get field detail of a table?