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
Explain the uses of a database trigger?
What is string data type in sql?
Explain raise_application_error.
how to convert numeric values to character strings? : Sql dba
Under what condition it is possible to have a page level lock and row lock at the same time for a query? : Transact sql
Can procedure in package be overloaded?
What does joining a thread mean?
What is localdb mssqllocaldb?
Why do we use sql constraints?
Explain how you can copy a file to file content and file to pl/sql table in advance pl/sql?
What are the types of views in sql?
what happens if null values are involved in expressions? : Sql dba
Does google use sql?
what are the disadvantages of mysql? : Sql dba
what is a trigger in mysql? Define different types of trigger. : Sql dba