how will I find the first 5 highest salaried employees in
each dept in oracle.
Answer Posted / kanha
Select E1.* From(Select Ename,Deptno,Sal,
Dense_Rank()over
(
Partition By Deptno Order By Sal Desc
)"Top Sal"
From Emp)E1
Where "Top Sal"<=5 Order By Deptno,Sal Desc;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the truncate in oracle?
Explain integrity constraints?
What is the use of aggregate functions in oracle?
What is recovery manager(rman) backup in Oracle?
what are actual and formal parameters?
How to loop through a cursor variable?
Explain the importance of .pll extension in oracle?
How to load a large xml file?
How to recover a dropped table in oracle?
Explain the dml?
What is oracle and what are its different editions?
How to create additional tablespaces for an new database?
Design database draw er diagram for a certain scenario ?
What are ddl statements in oracle?
How to compare dates in oracle sql?