By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
2 rows affected
| id | start_date | num_quarters |
|---|---|---|
| 1 | 2017-01-01 | 4 |
| 2 | 2017-04-01 | 7 |
| 2 | 2017-07-01 | 6 |
| 2 | 2017-10-01 | 5 |
| 2 | 2018-01-01 | 4 |
| 2 | 2018-04-01 | 3 |
| 2 | 2018-07-01 | 2 |
| 2 | 2018-10-01 | 1 |
| 1 | 2017-04-01 | 3 |
| 1 | 2017-07-01 | 2 |
| 1 | 2017-10-01 | 1 |