how will I find the first 5 highest salaried employees in
each dept in oracle.
Answer Posted / jas
select a.sal,a.emp_no from employee a
where 5=(select distinct(count(*) from
employee b where a.sal> b.sal)
| Is This Answer Correct ? | 8 Yes | 9 No |
Post New Answer View All Answers
What is a table in oracle?
Explain oracle 12c new features for developers?
What are the common oracle dba tasks?
What is a system tablespace?
How to use "while" statements in oracle?
What are a query and state the different types of queries and their uses?
What are the roles of dba?
How do I manually create a database in oracle?
What is the relation of a user account and a schema in oracle?
What is using clause and give example?
Can you have more than one content canvas view attached with a window ?
How to drop a stored function?
How to write a query with a right outer join in oracle?
What is max rowid in oracle?
What is rowid and rownum in oracle?