SyntaxFix
Write A Post
Hire A Developer
Questions
If you're using Oracle 8+, you can use the RANK() or DENSE_RANK() functions like so
RANK()
DENSE_RANK()
SELECT * FROM ( SELECT some_column, rank() over (order by your_sort_column desc) as row_rank ) t WHERE row_rank = 2;