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
Difference between global and parameter variables?
Define sql delete statement.
How do we use distinct statement? What is its use?
Is pl sql and postgresql same?
What is trigger in sql? Explain
Is it possible to Restore a Dropped Table using Rollback Command in Oracle SQL Plus ?
Can we write ddl statements in functions?
How do you create a db file?
What are the datatypes available in pl/sql ?
Are left and right joins the same?
how many ways to get the current time? : Sql dba
what is primary key? : Sql dba
What are the disadvantages of not performing database normalization?
What is data manipulation language?
What is aggregate function in sql?