By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
ItemName | Plus | Mins | Price | movingAvg |
---|---|---|---|---|
Iphone 13 | 5 | 0 | 500000 | 500000.000000 |
Iphone 13 | 0 | 1 | 700000 | 600000.000000 |
Iphone 13 | 0 | 1 | 750000 | 650000.000000 |
Iphone 13 | 3 | 0 | 600000 | 637500.000000 |
Iphone 13 | 0 | 1 | 700000 | 650000.000000 |
Iphone 13 | 0 | 1 | 750000 | 666666.666666 |