Query for second maximum salary in each in each department
Answer Posted / gopinath
select department_id, salary from
(select department_id, salary, rank() over(partition by
department_id order by salary desc) r from employees) where r=2;
cheers;
| Is This Answer Correct ? | 35 Yes | 13 No |
Post New Answer View All Answers
Where the sql database files are stored?
Is postgresql a server?
Differentiate between syntax and runtime errors.
how to drop an existing index in mysql? : Sql dba
what is a database? : Sql dba
Explain the difference between sql and mysql.
What type of database is cloud sql?
Are left and right joins the same?
What is a pragma statement?
Is left join and outer join same?
How do I filter in sql profiler?
What is the syntax and use of the coalesce function?
What is java sql package?
What makes a good primary key?
What is pl sql collection?