I have a table which has personIds
, a start date and an end date.
I need to select each personId-date
pair, but the dates are in a range specified by two columns.
For example:
personId | startDate | endDate
1 | 2018-05-10 | 2018-05-13
would return
personId | date
1 | 2018-05-10
1 | 2018-05-11
1 | 2018-05-12
1 | 2018-05-13