Oracle PL/SQL Aggregation – Rank
One of the more interesting aggregation functions is RANK. After doing a standard SELECT and GROUP BY; you can then have SQL rank the results using an aggregated value from another column.
Let’s dive in and look at how RANK works and what can it do for us.