I have a table like this.
Date Item BuyItem
20150101 Mouse 10
20150101 Keyboard 100
20150202 Mouse 20
20150202 Keyboard 200
I want to query like this.
Date Item RunningTotal
20150101 Mouse 10
20150202 Mouse 30
20150101 Keyboard 100
20150202 Keyboard 300
how could i do it? Recursive CTE is tied on one running column, like Date, right? Now I have one running column, Date, and another grouping column Item. help me, please!