Hello,
I'm stuck in one of the business use case where we need to add duplicate entries in a new custom table from the inputs given in other table.
e.q. consider i have a table with State, District, Date and #Months as the columns
State | Region | #Month | Date |
TN | HYD | 3 | 01-Oct-16 |
Now we want to dynamically create a custom table which will have duplicate entries with the same State, Region but the date being pushed to the next month based on the #Month Column
Expected Output is
State | Region | Month | Date |
TN | HYD | 3 | 01-Nov-16 |
TN | HYD | 3 | 01-Dec-16 |
TN | HYD | 3 | 01-Jan-17 |
As the #Month is 3 the 3 rows need to be pushed to the next three months.