how will I find the first 5 highest salaried employees in
each dept in oracle.
Answer Posted / rammohan
select rownum as row_id,sal from (select sal from
emp order by sal desc) where rownum <6;
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What are data pump export and import modes?
How to set a transaction to be read only in oracle?
How to retrieve values from data fields in record variables?
Why does Oracle not permit the use of PCTUSED with indexes?
How can we find out the duplicate values in an oracle table?
What are the differences between primary key and unique key?
What is the exact use of Collections?
What are group functions in oracle?
Why do I get unexpected characters from 8-bit character sets in weblogic jdriver for oracle?
Why use resource manager in Oracle?
How to drop an existing table in oracle?
How different is ms access and oracle?
What is the usage of synonyms?
How many types of database triggers exist?
What is a trigger and what are its types?