I have the following data:
ID | First | Last | Comments
456| John | Smith | 1. alpha 2. bravo 3. charlie
132| Tom | Ryan | 1. zulu 2. yankee 3. xray
I am trying to format it as such:
ID | First | Last | Comments
456| John | Smith | 1. alpha
456| John | Smith | 2. bravo
456| John | Smith | 3. charlie
132| Tom | Ryan | 1. zulu
132| Tom | Ryan | 2. yankee
132| Tom | Ryan | 3. xray
Because each comment is a different length I cannot use a function like LEFT(). The comments are always preceded by the number and a period however there are 30 comments per person. This lead me to CHARINDEX() and it seemed I could build a CASE statement with it, however because the data type for the Comments column is Text, CHARINDEX() won't work. Is there a workaround to separate this column?