This is my first table t1:
-----------------------------
| code | month | value |
-----------------------------
| 101 |august | 1 |
| 101 |September | 3 |
| 101 |November | 7 |
| 202 |august | 5 |
| 202 |September | 6 |
| 202 |November | 9 |
| 303 |august | 9 |
| 303 |September | 3 |
-----------------------------
I want to create the second table t2 (view table) looks like
------------------------------------------
| code | month | value | value_begin |
------------------------------------------
| 101 |august | 1 |0 |
| 101 |September | 3 |1 |
| 101 |November | 7 |4 (3+1) |
| 202 |august | 5 |0 |
| 202 |September | 6 |5 |
| 202 |November | 2 |11 (6+5) |
| 303 |august | 9 |0 |
| 303 |september | 3 |9 |
-------------------------------------------
value_begin is sum value and value_begin above the row, like in row 101-November value_begin is 4 from value 3 (above) and value_begin 1 (above).
Is this possible to create the second table t2 in view?