how to check the 3rd max salary from an employee table?
Answer Posted / rutujagabhane
SELECT *
FROM(
SELECT SALARY, DEPARTMENT_ID,EMPLOYEE_ID, DENSE_RANK() OVER (PARTITION BY DEPARTMENT_ID ORDER BY SALARY DESC) AS RN
FROM EMPLOYEES
)
WHERE RN = 2
;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we use join in subquery?
What is pessimistic concurrency control? : Transact sql
Does truncate free space?
What is ttitle and btitle?
list out some tools through which we can draw e-r diagrams for mysql. : Sql dba
Explain scalar functions in sql?
How can I make sql query run faster?
How do I count rows in sql query?
What are some emotional triggers?
What is dml and ddl?
What are sql objects?
What are the different sql languages?
What is self-join and what is the requirement of self-join?
What is the use of procedures?
hi,i plan to put experience on PLSQL ,can anyone suggest me for any institutes in bangalore or how to prepare for interviews