I'm trying to parse some comma separated values from a column in SQL Server 2012 while still keeping the data from the columns in the left and to the right.
I have seen some similar topic solutions but none seemed to be what I am looking for.
I have this:
FirstName LastName userid Regions ViewCosts HelpReviewCosts
---------------------------------------------------------------------
Darron Peters ya00003 All y y
John Davies ya30982 NA, EM, AP, LA n n
I am trying to parse the Regions column so that I can get this:
FirstName LastName userid Regions ViewCosts HelpReviewCosts
---------------------------------------------------------------------
Darron Peters ya00003 All y y
John Davies ya30982 NA n n
John Davies ya30982 EM n n
John Davies ya30982 AP n n
John Davies ya30982 LA n n