i need department wise top 2 employees salary.which logic
i will use
Answer Posted / ramya p
Select * from emp where sal in
(Select * From (Select sal from emp order by sal desc)
Where rownum < 3) order by sal desc;
| Is This Answer Correct ? | 6 Yes | 18 No |
Post New Answer View All Answers
When you have to use a default "rollback to" savepoint of plvlog?
What are conditional predicates?
Can we insert in view in sql?
When is a declare statement required?
How do we accept inputs from user during runtime?
What is sql and its types?
What is raw datatype in sql?
what is a trigger in mysql? Define different types of trigger. : Sql dba
What is sql lookup?
What are the different types of joins in sql?
Explain what is an index?
What is pl sql package?
What is the need of a partition key?
what are all different types of collation sensitivity? : Sql dba
How do I find duplicates in the same column?