Query for second maximum salary in each in each department
Answer Posted / jairam
select deptno,Max(e1.sal) from emp e1
where e1.sal NOT IN(select Max(e2.sal) from emp e2
group by e2.deptno)group by e1.deptno
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
Is a table valued function object?
What is #table in sql?
what are null values? : Sql dba
What is parallel hint?
What is replication id?
Is primary key always clustered index?
How delete a row in sql?
How is a PL/SQL code compiled?
What is record data type?
What is primary and foreign key?
Can we insert in sql function?
Why does sql need a server?
What are sql triggers used for?
what is self-join? : Sql dba
What are the 3 types of behavioral triggers?