Coding question · Top N Per GroupEasyAsked at Capital One

Top 3 debits per customer (DENSE_RANK)

DENSE_RANK with PARTITION BY for top-N-per-group; tie semantics.

The Brief