I'm trying to duplicates a row while changing the end date based on the difference between the current start and end date. The end date also has to be the last day of the month For example Data I have
This is what i've tried so far: current code
I know I need a do loop probably a nested do loop and maybe an execute immediate but I can't figure it out. Can anyone help?
I briefly tell you the algorithm of achieving this:
possible_end_date) of all possible end dates (e.g. last day of all months from 2020 to 2022)start_date < possible_end_dateand alsopossible_end_date < end_date