By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
10 rows affected
StartTime | IsPassed | NextStartTime | Duration | grp |
---|---|---|---|---|
1 | True | 7 | 0 | 0 |
7 | True | 10 | 0 | 0 |
10 | False | 15 | 5 | 2 |
15 | True | 21 | 0 | 1 |
21 | True | 26 | 0 | 1 |
26 | False | 34 | 8 | 4 |
34 | False | 44 | 10 | 4 |
44 | False | 51 | 7 | 4 |
51 | True | 60 | 0 | 4 |
60 | True | null | 0 | 4 |
StartTime | Duration |
---|---|
10 | 5 |
26 | 25 |