By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Records: 2 Duplicates: 0 Warnings: 0
time_start | time_end |
---|---|
19:00:00 | 19:40:00 |
20:30:00 | 21:00:00 |
slot | weight |
---|---|
00:00:00 | 1 |
24:00:00 | -1 |
19:00:00 | -1 |
20:30:00 | -1 |
19:40:00 | 1 |
21:00:00 | 1 |
slot | cum_sum |
---|---|
00:00:00 | 1 |
19:00:00 | 0 |
19:40:00 | 1 |
20:30:00 | 0 |
21:00:00 | 1 |
24:00:00 | 0 |
slot | cum_sum |
---|---|
00:00:00 | 1 |
19:00:00 | 1 |
19:40:00 | 2 |
20:30:00 | 2 |
21:00:00 | 3 |
24:00:00 | 3 |
free_time_start | free_time_end |
---|---|
00:00:00 | 19:00:00 |
19:40:00 | 20:30:00 |
21:00:00 | 24:00:00 |