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
Explain the difference between sql and mysql.
Explain the uses of a database trigger?
How do you remove duplicates without using distinct in sql?
What is indexing in sql and its types?
Where is pl sql used?
What are variables in pl sql?
What is the requirement of self-join?
What is dynamic sql in pl sql?
What is count * in sql?
How to call shell script from pl sql procedure?
Why do we use set serveroutput on?
What are all different types of collation sensitivity?
What does bitemporal mean?
What is sql dialect?
How to run sql functions in pl/sql?