Query for second maximum salary in each in each department
Answer Posted / sureshramsing
select * from(select row_number() over(partition by deptno order by sal desc) rn,a.* from emp a) where rn=1;
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What does select count (*) mean in sql?
Why is sql important?
What does an inner join do?
What is a trigger in sql?
Why stored procedure is better than query?
If a cursor is open, how can we find in a pl/sql block?
Does google use sql?
How to disable a trigger name update_salary?
What is use of package in pl sql?
How many types of tables are there?
What is posting?
How do I delete a trigger?
how to increment dates by 1 in mysql? : Sql dba
Which is faster view or stored procedure?
what is innodb? : Sql dba