I have a mysql table and i need a query to have cumulative sum :
hour col1 col2
00 1000 app
00 400 ck
01 100 app
01 100 ck
I need like this :
hour app ck
00 1000 400
01 1100 500
tried but i am new to mysql so not able to crack looking at other examples: