add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
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?.
sdate value
2018-01-01 100
2018-01-03 300
2018-02-10 1
2018-02-21 5
2018-10-10 1
2018-03-21 5
SELECT 6
month_begin month_end sum
2018-01-01 2018-01-31 400
2018-10-01 2018-10-31 1
2018-03-01 2018-03-31 5
2018-02-01 2018-02-28 6
SELECT 4