ARRAY_TO_STRING
Joins the elements of an array into one string with a separator.
Syntax
ARRAY_TO_STRING(<array>, <separator>)
ARRAY_TO_STRING(<array>, <separator>, <null replacement>)
The opposite of STRING_TO_ARRAY: it turns an array into text. By default it skips NULL elements, and the third argument sets what to replace them with. Similar to STRING_AGG, but it works with a ready-made array in a single row rather than collecting values from many rows.