I have a table with many columns in it. Each row has an ORDER_ID, ORDER_LINE_ID, START_DATE, and END_DATE. The combination of said columns make the row unique. Currently, the row has a start date and end date that is in month intervals. What I need to do is expand the table so that all of the data is still the same, only instead of month intervals it would be days.
For example, one row has
ORDER_ID=1000
ORDER_LINE_ID=1 234
START_DATE=11/1/07
END_DATE=12/1/07 (Ranges can be more than one month as well)
I have a DATE column and want to augment the example row into 31 rows (one for each day in the interval; this day would go in the DATE column)
I need some kind of script that would be able to do this for thousands of rows.
How would I go about doing this?
Thanks in advance!
For example, one row has
ORDER_ID=1000
ORDER_LINE_ID=1 234
START_DATE=11/1/07
END_DATE=12/1/07 (Ranges can be more than one month as well)
I have a DATE column and want to augment the example row into 31 rows (one for each day in the interval; this day would go in the DATE column)
I need some kind of script that would be able to do this for thousands of rows.
How would I go about doing this?
Thanks in advance!
Comment