This tag is intended for SQL questions where multiple string (character) values should be aggregated into a single value using GROUP BY. The equivalent of sum() - just for strings.
The ISO/IEC SQL standard function for this is LISTAGG
, but several DBMS:es have their own string aggregation functions:
- PostgreSQL has string_agg
- Oracle has listagg()
- SQL Server 2016 introduced string_agg
- MySQL has group_concat