Can anyone please tell me how to find out the N th largest entry from a table in Oracle?
Like for largest we can use MAX(column_name) i
I think the below query will work to find the second highest record with NOT IN.
SELECT MAX( userId ) FROM table WHERE userId NOT IN ( SELECT MAX( userId ) FROM table );
simple and useful...