Basic fundamental
Converting Comma Separated Value to Rows
We will use stuff function, charindex, ltrim, rtrim,substring
- 1. We will create function, which take column values as parameter.
- 2. Iterate internally till end of the last values separated with special characters.
- 3. Insert each values to table variable
- 4. Then select inserted values from table as output of stored procedure.