By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CusName | CusID | Quantity | QuantityTotal | Date |
---|---|---|---|---|
Test1 | 1 | 2.0 | 2.0 | 2017-01-01 |
Test1 | 1 | 1.5 | 3.5 | 2017-01-10 |
Test1 | 1 | 5.0 | 8.5 | 2017-01-25 |
Test2 | 2 | 0.5 | 0.5 | 2017-01-02 |
Test2 | 2 | 3.0 | 3.5 | 2017-01-05 |
Test3 | 3 | 10.0 | 10.0 | 2017-01-01 |
Test4 | 4 | 4.0 | 4.0 | 2017-01-18 |
Test4 | 4 | 6.0 | 10.0 | 2017-01-19 |