By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
10 rows affected
DateStamp | ProductID | InventoryChange | InventoryCount |
---|---|---|---|
2021-07-01 | 100 | -300 | 99700 |
2021-07-01 | 200 | -700 | 49300 |
2021-07-02 | 200 | -100 | 49200 |
2021-07-02 | 100 | 200 | 99900 |
2021-07-03 | 100 | 500 | 100400 |
2021-07-03 | 200 | 300 | 49500 |
2021-07-04 | 200 | -100 | 49400 |
2021-07-04 | 100 | -1000 | 98500 |
2021-07-05 | 100 | 100 | 98600 |
2021-07-05 | 200 | 300 | 50800 |
Warning: Null value is eliminated by an aggregate or other SET operation.