Oracle - RANK() and DENSE_RANK() Functions (Or Learning to Choose Necessary Values Within a Multiple Selection)
Let's start with the RANK() function. With explanations for what it is and in what cases it may be useful. The RANK() function is a very useful function that allows us to number a set by some grouping value within the entire selected set. It is easiest to show this with an example. To do this, let's create a small table: