Popular Posts

SQLblog.com - The SQL Server blog spot on the web

Friday, November 17, 2017

Cumulative subtraction

SQLServerCentral » Latest topics
Cumulative subtraction
Hi,
Col1 
10
20
30
40

Need output like this 
10-0=10
20-10=10
30-10=20
40-20=20

Output:
Col1
10
10
20
20

No comments: