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
explain the difference between delete , truncate and drop commands? : Sql dba
Are subqueries faster than joins?
Does pl sql work in mysql?
What is the use of & in pl sql?
How do I run a pl sql procedure in sql developer?
Is it possible to sort a column using a column alias?
How would you reference column values before and after you have inserted and deleted triggers?
How to assign sql query results to pl sql variables?
Write a sql select query that only returns each name only once from a table?
What is rownum and rowid?
What is the difference between an inner and outer join?
What is crud stand for?
What is an exception in pl/sql?
What is application trigger?
What are user defined functions?