By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Help with an interesting Postgres question: Why isn't an Index Only Scan used on a partition accessed via the parent table?.
15 rows affected
c_year | c_month | nature_of_illness | month_count |
---|---|---|---|
2017 | 1 | Cervix | 1 |
2017 | 1 | Lung | 1 |
2017 | 2 | Lung | 3 |
2018 | 1 | Cervix | 4 |
2018 | 2 | Lung | 3 |
Year | Month | Tumour count | Type |
---|---|---|---|
2017 | 1 | 1 | Cervix |
2017 | 1 | 1 | Lung |
2017 | 2 | 3 | Lung |
2018 | 1 | 4 | Cervix |
2018 | 2 | 3 | Lung |