Best approaches for running totals – updated for SQL Server 2012
31