Working in 2008 R2.
Based on an unknown number of entries in one table, I need to duplicate entries in another table, with some fields of the latter table changed to match values in the former.
For example Table 1 has:
John Smith 1/15/2016 123
John Smith 3/10/2016 456
Sara Jones 2/20/2016 124
Evan Doe 2/20/2016 345
Evan Doe 3/10/2016 567
Evan Doe 4/1/2016 127
Table 2 has 100 columns and thousands of rows. I need to insert new rows based on existing rows (the ones belonging to Smith, Jones, and Doe) and then some of the columns in those rows need to be updated based on the values found in the matching rows in Table 1.
How can I do this?
Thank you.
