Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 217177

How to add rows to a new custom table based on values in other table?

$
0
0

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

 

StateRegion#MonthDate
TNHYD301-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 

StateRegionMonthDate
TNHYD301-Nov-16
TNHYD301-Dec-16
TNHYD301-Jan-17

 

As the #Month is 3 the 3 rows need to be pushed to the next three months.

 


Viewing all articles
Browse latest Browse all 217177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>