I have string "1:182:1,1:195:2,1:213:1". I spllited the string with ',' in different rows. Now I want each rows single column to be splitted in 3 different columns in same row.
I tried using
SELECT LEFT(ThemeProperty, CHARINDEX(':', ThemeProperty) - 1) ,
RIGHT(ThemeProperty,
LEN(ThemeProperty) - CHARINDEX(':', ThemeProperty))
FROM #tempThemeProperty
But its output is
(No column name) (No column name)
1 182:1
1 195:2
1 213:1
But I want it to be
Column1 Column2 Column3
1 182 1
So any help would be appreciated.