Concatenate Strings from a Column Into a Single Row
by Koen • December 20, 2011 • DB2, Oracle, SQL • 0 Comments
Sometimes there is a need to concatenate strings from a column into a single row. Some databases already provide a solution with the GROUP_CONCAT() aggregate function, such as SQLite and MySQL. In DB2 you can use the XMLAGG() function to aggregate the strings from different rows into a single XML string, and then transform...
Read more →