There may be times when you need to get the top 10 (or n) rows from each group of your dataset to satisfy a business requirement. There are a few ways this can be done, but none so elegant as when you use RANK().
RANK() effectively applies a ranking to each rows in your dataset, based [...]

