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
What is sequence?
How to do paging with oracle?
what is a Nested Loop join?
Can we call procedure inside function in oracle?
How to start instance with a minimal initialization parameter file?
What is a directory object?
Which is better Oracle or MS SQL? Why?
Explain about integrity constraint?
Explain what are the different type of segments?
What is oracle sid?
Explain do view contain data?
Explain what are the characteristics of data files?
What are the different types of modules in oracle forms?
A table t is there.If you perform insert ,update and delete then the trigger will fire.What is the minimum no of trigger required for a table.
What is where clause in oracle?