What is the simplest way to get the nth highest value from a result set using plain SQL?
The result set would be huge, thus need to consider performance too.>
In Oracle:
SELECT * FROM ( SELECT col1, ROW_NUMBER()OVER(ORDER BY col1) rnum_col1 FROM table1 ) WHERE rnum_col1 = 10;