By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| version() |
|---|
| 5.6.51 |
| end_date | sales | prev_sales | after_sales |
|---|---|---|---|
| 2022-01-01 | 20 | 20 | 40 |
| 2022-01-02 | 20 | 40 | 30 |
| 2022-01-03 | 10 | 30 | 20 |
| 2022-01-04 | 10 | 20 | 20 |
| 2022-01-05 | 10 | 20 | 20 |
| 2022-01-06 | 10 | 20 | 20 |
| 2022-01-07 | 10 | 20 | 30 |
| 2022-01-08 | 20 | 30 | 30 |
| 2022-01-09 | 10 | 30 | 20 |
| 2022-01-10 | 10 | 20 | 20 |
| 2022-01-11 | 10 | 20 | 20 |
| 2022-01-12 | 10 | 20 | 10 |