RANK() window function with PARTITION BY for within-cohort ordering. Practice the per-group rank pattern that powers provider scorecards, sales rep leaderboards, and any 'rank within cohort' analysis. Same shape transfers to top-N-per-group, percentile rank, and tiered comparisons.