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?.
8 rows affected
3 rows affected
customer_id the_day tsla_running_amount goog_running_amount
a1b2c3 2020-04-01 10 5
a1b2c3 2020-04-02 10 5
a1b2c3 2020-04-03 30 13
a1b2c3 2020-04-04 30 13
a1b2c3 2020-04-05 30 13
a1b2c3 2020-04-06 30 13
a1b2c3 2020-04-07 30 13
a1b2c3 2020-04-08 30 13
a1b2c3 2020-04-09 30 13
bbbbbb 2020-04-05 10 null
bbbbbb 2020-04-06 10 5
bbbbbb 2020-04-07 10 13
bbbbbb 2020-04-08 30 13
bbbbbb 2020-04-09 30 13