I have in a SQL an agenda table in which i have the start time and end time. What i'ld like to do is to split into an hour every hour between the date time between start time and end time.
Example :
----------
start time - end time
----------
2017-07-17 9:00 - 2017-07-17 11:00
Would return
----------
start time - end time
----------
2017-07-17 9:00 - 2017-07-17 10:00
2017-07-17 10:00 - 2017-07-17 11:00