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 do I view tables in sql developer?
Can unique keys be null?
Why do we need view in sql?
Is subquery faster than join?
what happens when the column is set to auto increment and you reach the maximum value for that table? : Sql dba
What is Histogram?
What is the difference between an inner and outer join?
How do I run a script in sql developer?
What is the difference between nested table and varray?
How does left join work in sql?
What is primary key sql?
List different type of expressions with the example.
What is package in pl sql?
how to enter binary numbers in sql statements? : Sql dba
How do sql databases work?