I have string separated by semicolons. There are some sub-strings which contains specific character like pipe |
.
How to remove those sub-string using SQL Server?
Example:
1,abc;1,abc|1,def;1,abc|2,def;1,abc|3,def;1,abc|4,def;1,abc|5,def;1,abc|6,def;2,abc;2,abc|7,def;2,abc|7,def|1,xyz;2,abc|8,def
Result should be - 1,abc;2,abc;....