By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
2 rows affected
| ID | FromDate | ToDate |
|---|---|---|
| 0 | 2021-05-01 | 2021-05-04 |
| 1 | 2021-05-05 | 2021-05-10 |
| 0 | 2021-05-11 | 2021-05-16 |
| 2 | 2021-05-17 | 2021-05-25 |
| 0 | 2021-05-26 | 2021-05-28 |
Warning: Null value is eliminated by an aggregate or other SET operation.