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?.
CREATE TABLE
INSERT 0 3
CREATE TABLE
INSERT 0 3
product plant production sales week week_date
10011 ABC32 6742 425 1 2001-01-01
10011 ABC32 3645 364 11 2001-06-18
10011 DEF10 3579 879 1 2001-01-01
10011 DEF10 8761 501 11 2001-06-18
45891 GHI22 8945 904 1 2001-01-01
45891 GHI22 1556 395 11 2001-06-18
SELECT 6