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?.
7 rows affected
eventid start_date end_date city overlapping_days
1 2015-02-01 2015-02-04 Chennai 3
2 2015-02-02 2015-02-05 Chennai 3
3 2015-02-03 2015-02-07 Chennai null
6 2015-02-08 2015-02-10 Kolkata 1
7 2015-02-10 2015-02-11 Kolkata null
4 2015-02-04 2015-02-06 Mumbai 1
5 2015-02-06 2015-02-09 Mumbai null