By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
7 rows affected
7 rows affected
| custid | Quantity | Price | ReportDate | id | startdate | discount |
|---|---|---|---|---|---|---|
| 371965 | 12 | 2 | 2016-09-01 | 3 | 2016-07-11 | 0.11 |
| 371965 | 2 | 5 | 2018-02-25 | 7 | 2017-06-28 | 0.09 |
| 377958 | 45 | 3 | 2016-09-01 | 3 | 2016-07-11 | 0.11 |
| 270723 | 12 | 1.25 | 2014-05-01 | 2 | 2014-01-10 | 0.25 |
| 270723 | 10.86 | 1.25 | 2014-06-01 | 2 | 2014-01-10 | 0.25 |
| 270723 | 12.29 | 1.3 | 2014-07-01 | 2 | 2014-01-10 | 0.25 |
| 270723 | 12.29 | 1.4 | 2016-09-15 | 4 | 2016-09-14 | 0.12 |