how will I find the first 5 highest salaried employees in
each dept in oracle.
Answer Posted / karthik
select * from (select ename,eno,dept,sal,row_number() over
(partition by dept order by sal desc)top5 from emp) where
top5 <= 5
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is blob data type in oracle?
How to delete multiple rows from a table in oracle?
What is bulk collect in oracle?
what are steps for interface? where is exchange rate defined in which table?
How to get last row id?
What is PL/SQL ?
Explain integrity constraint?
Explain parameter file in oracle.
Can we create trigger on materialized view in oracle?
How to store only time; not date and time?
What are the different types of database objects?
How do I decide when to use right joins/left joins or inner joins or how to determine which table is on which side?
How to end the current transaction in oracle?
In Oracle Clinical 4.5.0, can the VIEW_TEMPLATE_ID column in DATA_EXTRACT_VIEWS table contain NULL value?
What is the usage of analyze command in oracle?