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?.
14 rows affected
route_id origin destination
1 A B
2 C D
3 B A
4 C A
5 D C
5 B T
5 T B
5 B T
5 H M
5 H M
5 M H
5 M H
5 D C
5 D C
point_1 point_2 journey_count
A B 2
A C 1
B T 3
C D 4
H M 4
point_1 point_2 journey_count
A B 2
B T 7
C A 1
C D 4