Query for second maximum salary in each in each department
Answer Posted / nancy singhal
select max(salary) from emp where salary in(select salary
from emp where salary not in(select max(salary) from emp));
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What do you mean by query optimization?
What is the difference between local variables and global variables?
What is data definition language?
How to change sql*plus system settings?
What are the different set operators available in sql?
What is data types in sql?
Is mariadb nosql?
what is sql profiler? : Sql dba
what is subquery? : Sql dba
What does the argument [or replace] do?
What does varchar include?
How do I debug a stored procedure?
How do you modify a table in sql?
How does a self join work?
How to get list of all tables from a database?