Possible Duplicate:
Calculate a Running Total in SqlServer
I am new to SQL. This question seems very basic but I just couldn't find the answer, maybe I am not hitting the right keyword.
In SQL server 2008 R2 I have a table like this:
Date Value --------------- 2012-1-1 100 2012-1-2 50 2012-1-4 200 I want to create a view with accumulated value, like this:
Date Total --------------- 2012-1-1 100 2012-1-2 150 2012-1-4 350 How should I do it?
running-totalin the tag, and made the assumption (and we all know what that means) that you had put it there. My apologies. :-(