In ANSI/ISO SQL, you'd have to use a recursive query that does the string concatenation. Also, I'm not sure if XMLAGG() is a standardized function. If so, it would be another option. by constructing an XML document, doing the aggregation there and then just getting the text data.