Introduction
The NTH_VALUE function helps you find the value at a specific position in a list of values, like picking the 3rd item from a sorted list.
When you want to find the 2nd highest salary in a company.
When you need to get the 5th earliest order date from a list of orders.
When you want to find the 1st, 2nd, or 3rd ranked student score in a class.
When you want to compare a value at a certain position within a group of data.