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
How to create your own reports in sql developer?
what is a field in a database ? : Sql dba
What is aggregate function in sql?
What is data control language?
what is a constraint? : Sql dba
what are wild cards used in database for pattern matching ? : Sql dba
What is sql*loader and what is it used for? : aql loader
what are dynamic queries in t-sql? : Transact sql
What is the usage of when clause in trigger?
What is multiple partition?
What is data profiling in sql?
Define join and name different types of joins?
Explain character-manipulation functions?
what are all the different types of indexes? : Sql dba
What are the types of dbms?