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
Explain the function of optimizer in oracle?
What is a trigger oracle?
What is oracle rowcount?
How to create a new user account in oracle?
How to download oracle database 10g xe?
What is the difference between I and G in Oracle?
Explain the use of tables option in exp command.
Why is oracle used?
What is the difference between pre-select and pre-query?
State any two functions of oracle?
How to turn on or off recycle bin for the instance?
What is blob datatype?
List out the difference between commit, rollback, and savepoint?
How to use select statement to count the number of rows in oracle?
How to define and use table alias names in oracle?