how can find the second max sal for every group(i.e i want
group the data based on key and find the second max sal for
every group
Answer Posted / nathan
SELECT *
FROM (SELECT deptno, sal,
DENSE_RANK () OVER (PARTITION BY deptno ORDER
BY sal DESC)
ranks
FROM emp)
WHERE ranks = 2;
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How to generate query output in html format?
Explain the use of indexes option in imp command.
What is the difference between I and G in Oracle?
What is the use of file param in imp command?
What happens to the indexes if a table is recovered?
What is pragma autonomous transaction in oracle?
What is a nvl function? How can it be used?
what are archived logs?
How can I combine multiple rows into a comma-delimited list in oracle?
Can you drop an index associated with a unique or primary key constraint?
How to connect to a remote server?
How i can handle exception in large code like 1000 line without distrubing the code or without exception handler sction?
What is Segment Advisor in Oracle?
How index is implemented in oracle database?
What are the uses of synonyms?