Please help with the request, there is such data: you need to break this data into intervals, in the status column, so that approximately it looks like this:

client| date_start | date_end | status
-------------------------------------------------------
1 | 01.06.2019 0:00:00| 01.06.2019 0:02:00| 2
1 | 01.06.2019 0:02:00| 01.06.2019 0:04:00| 1
1 | 01.06.2019 0:04:00| 01.06.2019 0:05:00| 2