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?.
SELECT 12
SELECT 3
id set_id number sequence_id numbers
2 1 3 1 3,4
5 1 3 1 3,4
8 2 3 1 3,4
12 3 9 2 9
SELECT 4
set_id sequence_id ?column? cnt min
1 1 1 2 2
1 1 4 2 5
2 1 7 2 8
3 2 11 1 12
SELECT 4