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
Which join is like an inner join?
what is a constraint? : Sql dba
Is it possible to link two groups inside a cross products after the cross products group has been created?
What is a pragma statement?
What is indexes?
What is the difference between database trigger and stored procedure?
Is sql microsoft?
Explain the difference in execution of triggers and stored procedures?
how to create a new view in mysql? : Sql dba
What is the difference between jpql and sql?
What is difference between hql and sql?
How is a process of pl/sql compiled?
What information is needed to connect sql*plus an oracle server?
What is secondary key?
What are all the common sql functions?