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
What is gpt format?
Explain foreign key in sql?
What is vector point function?
What is data profiling in sql?
Why do we go for stored procedures?
How do I audit the sql sent to the server?
Why procedure is used in sql?
How to order siblings in oracle hierarchy queries?
What are the features of pl sql?
What is native sql query?
How does cross join work in sql?
Are subqueries faster than joins?
What is the maximum number of triggers, you can apply on a single table?
What is partition in sql query?
how to present a past time in hours, minutes and seconds? : Sql dba