M
marolb
I have a table with 3 fields (Emp_ID, Start_Date, End_Date) and i need to
loop thru the records and create another table with 2 fields (Emp_ID,
New_Date) where the New_Date is all the dates between Start_Date and End_Date.
Example:
This is the original table:
ID Start_Date End_Date
123 11/06/2007 13/06/2007
123 15/06/2007 16/06/2007
To become
ID New_Date
123 11/06/2007
123 12/06/2007
123 13/06/2007
123 15/06/2007
123 16/06/2007
I have already created a function to create the new table if i pass the 3
parmaters in the first table.
However, i need to loop thru each record of the 1st table and excute this
function in an automated manner.
Apperciate any help.
Thank you.
Marwan
loop thru the records and create another table with 2 fields (Emp_ID,
New_Date) where the New_Date is all the dates between Start_Date and End_Date.
Example:
This is the original table:
ID Start_Date End_Date
123 11/06/2007 13/06/2007
123 15/06/2007 16/06/2007
To become
ID New_Date
123 11/06/2007
123 12/06/2007
123 13/06/2007
123 15/06/2007
123 16/06/2007
I have already created a function to create the new table if i pass the 3
parmaters in the first table.
However, i need to loop thru each record of the 1st table and excute this
function in an automated manner.
Apperciate any help.
Thank you.
Marwan