how will I find the first 5 highest salaried employees in
each dept in oracle.
Answer Posted / praveen marigaddi.
select distinct sal from emp a where 5 >(select count
(distinct sal) from emp where sal>a.sal) order by a.sal desc
Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
How to select some rows from a table in oracle?
What are joins, explain all types of joins?
How do I use os authentication with weblogic jdriver for oracle and connection pools?
How to do clean up if create database failed?
How to create tables for odbc connection testing?
What do you know about normalization? Explain in detail?
What is recovery manager(rman) backup in Oracle?
How to run the anonymous block again?
Explain a data segment?
Does facebook use oracle?
Where do we use decode and case statements?
what is IDE,DMV in sql server?
Explain index?
Why do we need oracle client?
How to use "in out" parameter properly?