I have a flat file source with columns that have start and end dates per row, and the table I am attempting to insert into only has one date column, which means I have to insert 1 row per week from the start date until the end date.
Sample FF Source:
Col1,StartDate,EndDate,Col4
1234,7/10/2018,28/10/2018,1.000
Rows to be inserted into table:
+------+------------+-------+
| Col1 | Date | Col4 |
+------+------------+-------+
| 1234 | 7/10/2018 | 1.000 |
| 1234 | 14/10/2018 | 1.000 |
| 1234 | 21/10/2018 | 1.000 |
| 1234 | 28/10/2018 | 1.000 |
+------+------------+-------+
This is how you would take Nicks suggestion and implement:
Results:
This assumes you have a DateDimension or "Calendar Table" with fields Date (representing the calendar date) and Weekday (Representing the numerical value of day of the week).