I have a table which contains date ranges. For example:
ID StartDate EndDate
---------------------------
2 1/1/2017 1/4/2017
3 1/2/2017 1/5/2017
4 2/1/2017 2/2/2017
I am trying to create the table below via SSIS (either with "Execute SQL Task" or any other method)
ID Date
--------------
2 1/1/2017
2 1/2/2017
2 1/3/2017
2 1/4/2017
3 1/2/2017
3 1/3/2017
3 1/4/2017
3 1/5/2017
4 2/1/2017
4 2/1/2017
And then once I have that I will join the remaining columns to each row
Question: how do I create a SQL task/command that will create the above mentioned table, based on whatever data is in the first table?
Note: the StartDate
and EndDate
are populated by an external source. Therefore, the first table is not static.
Also, I have a date dimension table called DimDate, but I have no idea how that helps me