i need department wise top 2 employees salary.which logic
i will use
Answer Posted / vikas kapoor
select deptno,sal from
(select deptno,sal,row_number() over(partition by deptno orderby sal) r from emp ) where r<3
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How does a self join work?
Is a secondary key the same as a foreign key?
Why do we use view in sql?
Does sql full backup truncate logs?
Which one is better sql or oracle?
what is an extent ? : Sql dba
What is a full join sql?
What is the difference between microsoft access and sql server?
What are the built in functions of sql?
what are the different type of sql's statements ? : Sql dba
Mention what are different methods to trace the pl/sql code?
What does (+) mean in sql joins?
What is pl/sql language case sensitive?
what is rollback? : Sql dba
what are all the different types of indexes? : Sql dba