One of the T-SQL functions introduced in SQL Server 2017 is the STRING_AGG()
function. This is basically the equivalent of MySQL’s GROUP_CONCAT()
function – it lets you return query results as a delimited list, rather than in rows.
But there are a few minor differences between the two functions.
This article explores some of the main syntax differences between these functions.