STRING_AGG
Joins values from many rows into one piece of text with a separator.
Syntax
STRING_AGG(<expression>, <separator>)
STRING_AGG(<expression>, <separator> ORDER BY <sort key>)
An aggregate function: it turns a group of rows into a single line of text. The order of elements isn't guaranteed on its own, so set it with ORDER BY right inside the brackets. In standard SQL a similar function is called LISTAGG.