how will I find the first 5 highest salaried employees in
each dept in oracle.
Answer Posted / mihir nasikkar
select *
from employee X
where salary in (select top 5 salary
from employee
where dept = X.dept
order by salary desc)
order by dept, salary desc
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
Difference between oracle's plus (+) notation and ansi join notation?
How to create a temporary table in oracle?
What suggestions do you have to reduce the network traffic?
How to assign a table row to a record variable?
In XIR2 if we lost the administration password .How can we regain the password?thanks in advance.
What is using clause and give example?
Can we insert data in view oracle?
What is the max number of columns in an oracle table?
How do I uninstall oracle client from windows?
how to convert .db (extention) database file into .dmp (extention ) for oracle database ?
What is analyze command used for?
Can sub procedure/function be called recursively?
how can we store any pdf file in oracle
what is normalisation?what are its uses?
How to do paging with oracle?