Platinum Partner

Concate Set Of Rows With Comma (or Any) In A Single String

I would like to share cool feature of SQL Server with you guys like:
 
Please use the following query when concatenate two or more rows with comma (or any you want) in a single string.


SELECT STUFF((SELECT ',' + RTRIM(RegionDescription) FROM Region FOR XML PATH('')),1,1,'') AS 'Regions'

 
This would be also useful when you have to check between condition in SQL Query.

Spring Framework
{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}