Answer Posted / santo
SELECT r.salary, r.department_id, r.RANK highest
FROM (SELECT salary, department_id,
DENSE_RANK () OVER (PARTITION BY
department_id ORDER BY salary DESC)
RANK
FROM employees) r
WHERE r.RANK <= 3
ORDER BY 2
Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
What is basic structure of pl sql?
How to sort the rows in sql.
What are the various restrictions imposed on view in terms of dml?
What is cost in sql execution plan?
what are the security recommendations while using mysql? : Sql dba
Explain scalar functions in sql?
What is the purpose of the primary key?
What is mutating error in pl sql?
What is sql select statement?
What is a null value?
Which column of the user triggers data dictionary view displays the database event that will fire the trigger?
Is left join same as join?
how to return query output in html format? : Sql dba
How does sql profiler work?
What are string functions in sql?