get the second highest salary [message #302497] |
Mon, 25 February 2008 23:38  |
sudharshan
Messages: 48 Registered: November 2006
|
Member |
|
|
select ename,empno,
rank() over(partition by sal desc) rank
from emp
In my output i want to see only the second highest not all other ranks?is this possible.
|
|
|
|
|
Re: get the second highest salary [message #302523 is a reply to message #302522] |
Tue, 26 February 2008 00:52   |
Frank
Messages: 7901 Registered: March 2000
|
Senior Member |
|
|
Why don't you try it yourself?
Google for inline view if you don't know what that is.
Try it, and if you're stuck come back and show us what you tried.
Copy your sqlplus output here, surrounded by [code][/code] tags
|
|
|
|
|
|
|