Query for second maximum salary in each in each department
Answer Posted / arvind kumar
select * from employees e where (select count(salary) from
employees where salary >=e.salary)=2;
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is sql entity?
What is multiple partition?
Why do we use set serveroutput on?
how to create a new table in mysql? : Sql dba
Compare sql & pl/sql
Why is a primary key important?
what are aggregate and scalar functions? : Sql dba
Why do you partition data?
What is sql engine in oracle?
How do I start pl sql?
How many triggers can be applied to a table?
explain the advantages and disadvantages of stored procedure? : Sql dba
What does <> sql mean?
How do I run sql profiler?
When is the explicit cursor used ?