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 can we destroy the session, how can we unset the variable of a session? : Sql dba
Is oracel sql developer written in java?
What are operators available in sql?
Can dml statements be used in pl/sql?
Why stored procedures are faster than query?
How consistent is the view of the data between and within multiple sessions, transactions or statements ?
How do I clear the screen in sql plus?
How do I count rows in sql query?
What is recursive join in sql?
what is the difference between undefined value and null value? : Sql dba
What is the difference between a procedure and a function?
Can we rollback truncate?
What is the starting oracle error number? What is meant by forward declaration in functions?
What is 19 null in sql?
What is the purpose of the primary key?