database - Split Row into multiple Row (events with start time and end time that span multiple days/periods) -
i working in spotfire , looking split "events" multiple rows. data provided start date/time , end date/time. split rows unique date.
current data example
start date |end date |duration 20/07/17 4:00am |26/07/17 4:00am |144
desired outcome
start date |end date |duration 20/07/17 4:00am |21/07/17 12:00am |18 21/07/17 12:00am|22/07/17 12:00am |24 22/07/17 12:00am|23/07/17 12:00am |24 23/07/17 12:00am|24/07/17 12:00am |24 24/07/17 12:00am|25/07/17 12:00am |24 25/07/17 12:00am|26/07/17 12:00am |24 26/07/17 12:00am|26/07/17 4:00am |4
Comments
Post a Comment