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
What is the process of debugging?
What are the uses of sysdate and user keywords?
What is sql procedures and functions?
What does rownum mean in sql?
What is java sql package?
Are sql database names case sensitive?
What is varchar example?
How does postgresql compare to oracle/db2/ms sql server/informix?
How exception handling is done in advance pl/sql?
differentiate between float and double. : Sql dba
What does 0 mean in sql?
How is debugging done?
What are the types of records?
Why are cursors used?
what are date and time data types? : Sql dba