By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
YRMTH | SomeYRMTH | SomeNumber | MovingSum |
---|---|---|---|
202201 | 202201 | 20 | null |
202204 | 202204 | 53 | 20 |
202205 | 202205 | 2 | 73 |
202206 | 202206 | 81 | 75 |
202207 | 202207 | 7 | 156 |
202209 | 202209 | 78 | 163 |
202210 | 202210 | 57 | 241 |
202211 | 202211 | 90 | 298 |
202212 | 202212 | 36 | 388 |
202301 | 202301 | 62 | 424 |
202302 | 202302 | 8 | 486 |
202303 | 202303 | 57 | 474 |
202304 | 202304 | 50 | 531 |
202305 | 202305 | 50 | 581 |
202306 | 202306 | 56 | 578 |
202307 | 202307 | 80 | 632 |
202308 | 202308 | 28 | 631 |
202309 | 202309 | 48 | 652 |
202310 | 202310 | 92 | 700 |
202311 | 202311 | 54 | 714 |
Warning: Null value is eliminated by an aggregate or other SET operation.