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?.
towar różnica start_date end_date length
towar1 1 2020-01-01 2020-01-01 1
towar1 2 2020-01-02 2020-01-02 1
towar1 1 2020-01-03 2020-01-03 1
towar1 0 2020-01-04 2020-01-05 2
towar1 2 2020-01-06 2020-01-06 1
towar1 0 2020-01-07 2020-01-10 4
towar2 1 2020-01-03 2020-01-03 1
towar2 0 2020-01-04 2020-01-05 2
towar2 2 2020-01-06 2020-01-07 2
towar2 0 2020-01-07 2020-01-08 2
towar3 2 2020-01-07 2020-01-07 1
towar3 0 2020-01-07 2020-01-08 2
towar3 1 2020-01-08 2020-01-08 1