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
Explain the use of file option in exp command.
What is Library Cache in Oracle?
Other than making use of the statspack utility, what would you check when you are monitoring or running a health check on an Oracle 8i or 9i database?
What is an oracle recycle bin?
How will you identify oracle database software release?
Explain about integrity constraint?
Explain the difference between replace() and translate() functions in oracle?
How do I find the database name in oracle?
11. Display the client number and name and the client number and name of the person who referred that client.
How to pass a cursor variable to a procedure?
What are the differences between lov and list item?
Which is better Oracle or MS SQL? Why?
How do I decide when to use right joins/left joins or inner joins or how to determine which table is on which side?
Can you create a synonym without having a table?
Explain the use of owner option in exp command.