A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
CREATE TABLE #table1(col1 int)
INSERT INTO #table1 VALUES (10),(20),(30),(40)
SELECT
col1,
SUM(col1) OVER (ORDER BY col1) AS [runningTotal]
FROM #table1
DROP TABLE #table1