December 24, 2013 at 12:15 am
HI ,
If i have a value as AAA,AAA,AAA,AAA,BBB,CCC
Then i want return it as AAA,BBB,CCC. Can Anyone please suggest whether this is possible.
Thanks in Advance
December 28, 2013 at 5:27 am
You could split the string using the Delimited Split Function refernced in my signature and the "FOR XML PATH" approach together with a DISTINCT to build te final string.
If the length of each element is known and constant, the split function can be simplified.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply