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?.
11 rows affected
grp the_date color rank
A 2019-01-01 R 1
A 2019-02-01 Y 1
B 2019-01-01 R 1
B 2019-02-01 Y 1
B 2019-03-01 Y 2
B 2019-04-01 R 1
B 2019-05-01 R 2
B 2019-06-01 R 3
B 2019-07-01 Y 1
B 2019-08-01 R 1
B 2019-09-01 R 2
grp the_date color rank
A 2019-01-01 R 1
A 2019-02-01 Y null
B 2019-01-01 R 1
B 2019-02-01 Y null
B 2019-03-01 Y null
B 2019-04-01 R 1
B 2019-05-01 R 2
B 2019-06-01 R 3
B 2019-07-01 Y null
B 2019-08-01 R 1
B 2019-09-01 R 2
grp the_date color rnk
A 2019-01-01 R 1
A 2019-02-01 Y null
B 2019-01-01 R 1
B 2019-02-01 Y null
B 2019-03-01 Y null
B 2019-04-01 R 1
B 2019-05-01 R 2
B 2019-06-01 R 3
B 2019-07-01 Y null
B 2019-08-01 R 1
B 2019-09-01 R 2