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
Does facebook use oracle?
What types of joins are used in writing subqueries?
How to convert a date to char in oracle? Give one example.
Is truncate autocommit in oracle?
How to use "in out" parameter properly?
What is oracle rowcount?
How to load data from external tables to regular tables?
What are the uses of linked server and explain it in detail?
What is a system tablespace?
Difference between hot backup vs. Cold backup?
How to update values in a table in oracle?
What are the advantages of oracle?
How to best split csv strings in oracle 9i?
Does oracle partitioning improve performance?
How to delete a column in an existing table?