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
How can you know that statistics should be updated?
Is natural join and inner join same?
What is difference between table and view?
What is the difference between the conventional and direct path loader? : aql loader
How do I run a pl sql program?
Why do we use subquery?
what is table? : Sql dba
What is difference between rank () row_number () and dense_rank () in sql?
Does view store data in sql?
What is pl sql package?
What is case function?
What is graph sql?
How can I make sql query run faster?
How much does sqlite cost?
Which certification is best for sql?