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?.
9 rows affected
id amount
1 5
1 5
2 4
2 4
2 4
3 7
3 7
4 5
4 5
id amount total
1 5 21
1 5 21
2 4 21
2 4 21
2 4 21
3 7 21
3 7 21
4 5 21
4 5 21
id amount sum
1 5 46
1 5 46
2 4 46
2 4 46
2 4 46
3 7 46
3 7 46
4 5 46
4 5 46