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 happens to the data files if a tablespace is dropped?
Is oracle the best database?
How to loop through data rows in the implicit cursor?
What do you understand by database schema and what does it hold?
Can we save images in a database and if yes, how?
Can any one explain me when i execute below query.. select months_between('07-JUL-12','10-FEB-12') from dual; Out put:- 4.90322581 How oracle calculate?
Is primary key indexed by default in oracle?
How to delete a column in an existing table?
What is an oracle cursor variable?
What do you mean by cdb and pdb in oracle 12c?
How to open and close an explicit cursor in oracle?
What are the original export and import utilities?
What is SQL access advisor in Oracle?
What is a connect identifier?
What is an oracle recycle bin?