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
How to define a specific record type?
Which is better Oracle or MS SQL? Why?
What to do if the binary spfile is wrong for the default instance?
Please explain oracle left join with an example?
How to define an anonymous procedure with variables?
What are the oracle built-in data types?
What query tells you how much space a tablespace named test is taking up, and how much space is remaining?
Explain parameter file in oracle.
Explain joins in oracle?
When do you get a .pll extension in oracle?
How to use "out" parameter properly?
 What are the oracle DML commands possible through an update strategy?
How to view the data files in the current database?
What is index in Oracle?
defination of bitmap index