SyntaxFix
Write A Post
Hire A Developer
Questions
In my opinion, if you are using SQL Server 2017 or later, using STRING_AGG( ... ) is the best solution:
STRING_AGG( ... )
More at:
https://stackoverflow.com/a/42778050/1260488