By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
id | start_date | end_date | duration |
---|---|---|---|
1 | 2020-01-01 | null | 2 |
2 | 2020-01-01 | null | 5 |
3 | 2020-01-01 | null | 9 |
3 rows affected
id | start_date | end_date | duration |
---|---|---|---|
1 | 2020-01-01 | 2020-01-03 | 2 |
2 | 2020-01-01 | 2020-01-08 | 5 |
3 | 2020-01-01 | 2020-01-14 | 9 |