I have a table where one column may contain multiple values that I want to split and display individually by creating another row
So split Col2 and go from this:
| Col1 | Col2 |
| ---- | ---- |
| A | red |
| B | blue, green |
| C | blue |
| D | green, red, purple|
to this:
| Col1 | Col2 |
| ---- | ---- |
| A | red |
| B | blue|
| B | green |
| C | blue |
| D | green|
| D | red|
| D | purple|
(T-SQL)