I have a datetime columns, that are fromDate
and toDate
.
I am trying to figure out if the interval is continuos.
This is how my table looks this:
I would like to get the following results with 3 intervals:
fromDate | toDate
2020-05-23 08:00:00 | 2020-05-23 09:15:00
2020-05-23 11:00:00 | 2020-05-23 12:00:00
2020-05-23 15:00:00 | 2020-05-23 15:30:00
Any idea how to do this?