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
What are all different types of collation sensitivity?
What is multiple partition?
What is foreign key sql?
What is difference between inner join and self join?
What is loop in pl sql?
What is pl sql quora?
If i can use sys.check_constraints to display my constraints from my database using sql server 2005, how can i display then if i am using sql server 2000????
How many aggregate functions are available there in sql?
What's the procedure?
What is compilation error in pl sql?
Explain architecture of sql server notification services?
What is the difference between pl and sql?
what is rollback? : Sql dba
Is drop table faster than truncate?
What is dense_rank in sql?