By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
8 rows affected
res_id | month_start | month_end | org | pct | auto_numbered | res_month_pct | cnt |
---|---|---|---|---|---|---|---|
A | 2018-07-01 | 2019-12-31 | null | null | null | 0 | 0 |
A | 2018-08-01 | 2019-12-31 | null | null | null | 0 | 0 |
A | 2018-09-01 | 2019-12-31 | null | null | null | 0 | 0 |
A | 2018-10-01 | 2019-12-31 | null | null | null | 0 | 0 |
A | 2018-11-01 | 2019-12-31 | null | null | null | 0 | 0 |
A | 2018-12-01 | 2019-12-31 | null | null | null | 0 | 0 |
C | 2019-11-01 | 2020-01-31 | One | 100 | 7 | 200 | 2 |
C | 2019-11-01 | 2020-01-31 | Four | 100 | 8 | 200 | 2 |
C | 2019-12-01 | 2020-01-31 | One | 100 | 7 | 200 | 2 |
C | 2019-12-01 | 2020-01-31 | Four | 100 | 8 | 200 | 2 |
C | 2020-01-01 | 2020-01-31 | One | 100 | 7 | 200 | 2 |
C | 2020-01-01 | 2020-01-31 | Four | 100 | 8 | 200 | 2 |
Warning: Null value is eliminated by an aggregate or other SET operation.
Warning: Null value is eliminated by an aggregate or other SET operation.