Query for second maximum salary in each in each department
Answer Posted / akula
select * from emp e1 where 2 =(select count(distinct(sal)) from emp e2 where e1.dno=e2.dno and e1.sal<=e2.sal);
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How do I find duplicates in a single column in sql?
What mean sql?
What is the difference between function and procedure in pl/sql?
What is database white box testing and black box testing?
List different type of expressions with the example.
What are its different types of dbms?
What is the primary use of normalization?
What is a join query?
What is out parameter used for eventhough return statement can also be used in pl/sql?
Can we join 3 tables in sql?
What are hotfixes and patches?
What is range partitioning?
What does stand for in sql?
How do you change a value in sql?
What is bind variable in pl sql?