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
Explain character-manipulation functions?
How many sql are there?
What is replication id?
What is pivot query?
What is db journal file?
Explian rowid, rownum? What are the psoducolumns we have?
What are the possible values for the boolean data field?
What is the difference between sql and t sql?
Is clustered index a primary key?
What kind of join is join?
How do I add a primary key to a table?
What are primary key and foreign key and how they work?
Is join and inner join the same?
What are operators available in sql?
What is difference between sql function and stored procedure?