Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Second highest value when using group by
I want to find the second highest salary earner in each department in
the example below:
ID Department Salary
1 101 400 2 101 550 3 101 500 4 201 400 5 201 500
The query I am expecting should return this result set:
ID Department Salary
3 101 500 4 201 400