how will I find the first 5 highest salaried employees in
each dept in oracle.
Answer Posted / md valiyullah
select max(sal)-5 from emp where dept = 'sale'
union all
select max(sal)-5 from emp where dept = 'purchase'
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What is a nested table and how is it different from a normal table?
How many types of table in Oracle?
How to write a left outer join with the where clause in oracle?
What is Java Pool in Oracle?
What is sharded cluster?
What are the types of trigger in oracle?
Is oracle a language?
What is data file?
How to assign a tablespace to a users in oracle?
How to retrieve data from an cursor to a record?
What are the attributes that are found in a cursor?
how do u setup a replication site?
What is merge in oracle?
How many types of synonyms in Oracle?
How can you tell how much space is left on a given file system and how much space each of the file systems subdirectories take-up?