So i have a a simple table:
id amount
1. 40
2. 50
3. 60
I would like to create a query that will return an id number with the sum in a way that first id will have sum 40 , second id will have 40+50=90 , third 40+50+60= 150. Visualized output would be something like this:
id sum
1. 40
2. 90
3. 150