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?.
4 rows affected
3 rows affected
2 rows affected
id created_at thing_name thing_category
1 2021-03-05 08:02:35.955324+00 parent1 bundle
2 2021-03-05 08:02:35.955324+00 child1 assembly
3 2021-03-05 08:02:35.955324+00 subChild1 component
4 2021-03-05 08:02:35.955324+00 subChild2 component
id created_at parent_name child_name child_quantity
1 2021-03-05 08:02:35.955324+00 parent1 child1 1
2 2021-03-05 08:02:35.955324+00 child1 subChild1 10
3 2021-03-05 08:02:35.955324+00 child1 subChild2 2
id created_at sold_name sold_quantity
1 2021-03-05 08:02:35.955324+00 parent1 1
2 2021-03-05 08:02:35.955324+00 parent1 2
parent_name child_name child_quantity child_category
parent1 child1 1 assembly
child1 subChild1 10 component
child1 subChild2 2 component
child_name sum
subChild2 6
subChild1 30