In SQL Server, I would like to split a string field from a table, my data is as below:
For example:
Select field1
from table1;
Output:
s1,t1 1,a 2,b 3,c 4,d
After splitting this string, I would like the output to be a table with 2 columns:
s1 t1
-----
1 a
2 b
3 c
4 d
I just realized, I can work with this kind of output as well, if any leads please share.
s1,t1
1,a
2,b
3,c
4,d