Query for second maximum salary in each in each department
Answer Posted / swastik
SELECT *
FROM
(
SELECT Ename, Deptno, Sal,
DENSE_RANK(PARTITION BY Deptno
ORDER BY Sal DESC
)TopRank
FROM Emp
)
WHERE TopRank = 2
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to start oracle sql developer?
What are sql triggers used for?
what are the differences between get and post methods in form submitting. Give the case where we can use get and we can use post methods? : Sql dba
What is a pl/sql block?
How can we find duplicate records in a table?
What is materialized view in sql?
Is pl sql a scripting language?
Which sql statement is used to delete data from a database?
Define concurrency control. : Transact sql
How do you break a loop in pl sql?
Can we create a trigger on view?
what are date and time data types? : Sql dba
how can we submit a form without a submit button? : Sql dba
how to rename an existing table in mysql? : Sql dba
Which is faster union or join?