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 select all columns of all rows from a table in oracle?
What is an oracle?
Explain the use of show option in imp command.
What is clustered table in Oracle?
what is Single Byte Overhead...?
what is the scripts in data base?
What is an index associated with a constraint?
Whether any commands are used for months calculation? If so, what are they?
How do we get field detail of a table?
What are the attributes that are found in a cursor?
How to use regular expression in pattern match conditions in oracle?
How do I connect to oracle?
Explain an index segment?
Explain the use of owner option in exp command.
Explain the use of Merge statement in oracle 11g