In SQL Server, I'm using STUFF, XML functionality to use this feature of concatenating strings. After the process i have to update the last element of the record.
My table looks like this:
id category
-------------
1 Pop
1 Rock
2 Pop
3 Rock
Same ID category should get append with |
delimiter
Pop|Rock| as Pop|Rock
This is the way I'm trying to do. But the Stuff
and XML is killing my performance.
Any help would be appreciated.