By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
3 rows affected
ID | StartDate | EndDate | DaysInRange |
---|---|---|---|
1 | 2016-06-09 | 2019-12-31 | 365 |
2 | 2016-06-09 | 2019-01-30 | 30 |
3 | 2019-02-09 | 2019-07-30 | 172 |
3 rows affected
ID | StartDate | EndDate | DaysInRange |
---|---|---|---|
1 | 2016-06-09 | 2019-12-31 | 365 |
2 | 2016-06-09 | 2019-01-30 | 30 |
3 | 2019-02-09 | 2019-07-30 | 172 |