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 pl sql architecture?
Who developed sql?
Can we alter stored procedure?
What are sql data types?
How to use distinct and count in sql query? Explain
Are subqueries faster than joins?
Explain the working of primary key?
What is the primary use of normalization?
Can we join 3 tables in sql?
How sql query is executed?
Is oracel sql developer written in java?
Explain constraints in sql?
what is the use of friend function? : Sql dba
What is on delete set null?
Explain ddl statements in pl/sql?