i need department wise top 2 employees salary.which logic
i will use
Answer Posted / shyam
select * from
(select ename,job,sal,deptno,
dense_rank()
over(partition by deptno order by sal desc) densrank
from emp)
where densrank<=2;
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what are the types of subquery? : Sql dba
what is the difference difference between procedure and packages
what is an alias command? : Sql dba
What is a primary key called that is made up of more than one field?
How do you modify a table in sql?
what is 'mysqldump'? : Sql dba
What does stand for in sql?
What does sql stand for?
What is sql character function?
Show the two pl/sql cursor exceptions.
What does select count (*) mean in sql?
What is pl sql block structure?
Can we use pl sql in mysql?
Can function return multiple values in sql?
What is microsoft t sql?