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 do you write a complex sql query?
Is left join same as join?
How do I quit sql?
explain the delete statements in sql
What is difference between function and trigger?
Which software is used for pl sql programming?
What does the base_object_type column shows in the user.triggers data dictionary view?
Which table is left in left join?
What is the use of procedures?
what is a constraint? : Sql dba
Is mariadb nosql?
Can we use view in stored procedure?
What does dml mean?
What is rename command in sql?
What is the difference between row level and statement level trigger?