I have a table called master that has records stored at a quarterly level ie. each record has a fndng_dt=1Q2017, 2Q2017, 3Q2017 ect.
I need to take each record and triplicate each record with the same data and stamp the appropriate fndng_mo_dt based on the fndng_dt field. For example, a row with fndng_dt=1Q2017 would need need two new rows added and I need the fndng_mo_dt to show as 01, 02, 03 respectively across these three records. In addition, I have a field called wgtd_sls_calc_amt in this table and I need to equally allocate this amount to the new 2 rows.
I am looking for suggestions on how to best do this. I am hoping I can do this in a query but the only way I can think of doing it is with a new table where I append the original data 3x times to get the extra rows. After that, I am still unsure how I can get each row to correctly stamp the fndng_mo_dt to each of the 3 rows based on what is in the fndng_dt field.
Any suggestions or ideas?
I need to take each record and triplicate each record with the same data and stamp the appropriate fndng_mo_dt based on the fndng_dt field. For example, a row with fndng_dt=1Q2017 would need need two new rows added and I need the fndng_mo_dt to show as 01, 02, 03 respectively across these three records. In addition, I have a field called wgtd_sls_calc_amt in this table and I need to equally allocate this amount to the new 2 rows.
I am looking for suggestions on how to best do this. I am hoping I can do this in a query but the only way I can think of doing it is with a new table where I append the original data 3x times to get the extra rows. After that, I am still unsure how I can get each row to correctly stamp the fndng_mo_dt to each of the 3 rows based on what is in the fndng_dt field.
Any suggestions or ideas?