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 pl sql collection?
Why do we use subquery?
What is the usage of the distinct keyword?
How does postgresql compare to "nosql"?
How sql query is executed?
How can we avoid duplicating records in a query?
what does the t-sql command ident_current does? : Transact sql
What is out parameter used for eventhough return statement can also be used in pl/sql?
Can we use two order by clause in query?
How do I order by ascending in sql?
What are types of exception?
How do I install sql?
What is sql query limit?
What is cursor status?
Can sql function call stored procedure?