Query for second maximum salary in each in each department
Answer Posted / suneelkumar
select * from emp x where 2=(select count(distinct sal) from
emp y where x.sal<=y.sal) group by deptno;
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Does pl/sql support create command?
where are cookies actually stored on the hard disk? : Sql dba
Explain commit, rollback and savepoint.
What is the starting oracle error number?
How to place comments in pl/sql?
What do you mean by dbms? What are its different types?
What is the trigger in sql?
What is dynamic query?
What is AUTH_ID and AUTH_USER in pl/sql ?
how to rename an existing column in a table? : Sql dba
What are database links used for?
Explain the types of joins in sql?
Which is better join or inner query?
How to set up sql*plus output format in oracle?
Explain some predefined exceptions.