RANK() OVER (PARTITION BY department ORDER BY denial_count DESC) — find the leading denial reason within each department. The 'top within group' pattern is the canonical analytical question for departmental denials work: which CARC code drives the most rework in each clinical area? Combines a 4-table chain with a partitioned RANK window.