By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Date | Sales |
---|---|
2023-03-01 | 800 |
2023-03-02 | 300 |
2023-03-03 | 500 |
2023-04-01 | 300 |
2023-04-02 | 500 |
2023-04-03 | 200 |
2023-05-01 | 100 |
2023-05-02 | 400 |
2023-05-03 | 400 |
Date | TotalSales | Diff |
---|---|---|
2023-05-01 | 900 | 100 |
2023-04-01 | 1000 | 600 |
2023-03-01 | 1600 | 0 |