https://www.sqlservercentral.com/articles/solving-the-running-total-and-ordinal-rank-problems-rewritten
Solving the Running Total and Ordinal Rank Problems (Rewritten) – SQLServerCentral
May 22, 2019 - Revisiting his very popular article on the running total and ordinal rank problems, MVP Jeff Moden brings us a detailed analysis of how you might want to...
the runningordinal ranksolvingtotalproblems