I have a table Sample with data stored like below
Id | String
--------------
1 abc,def,ghi
2 jkl,mno,pqr
I need the output like..
Id | processedrows
--------------
1 abc
1 def
1 ghi
2 jkl
2 mno
2 pqr
How can I do the same with a select query in SQL Server?