string_agg
string_agg(expr: string, delimiter: const string, [order_by(...)]?) -> string
Returns concatenated input values, separated by the delimiter.
The expression must be a string column. The delimiter must be a string constant (it may be an empty string). If no ordering is specified, the default ordering is that of the invoking verb, which is generally the 'valid_from' timestamp, ascending.
Domain
This is an aggregate function (aggregates rows over a group in aggregate verbs).
Categories
Examples
statsby nicknames:string_agg(nickname, ", ", order_by(email)), group_by(uid, fullname)
A list of all nicknames for each individual in the organization; for users with more than one nickname they will be sorted by email address.
Updated 8 days ago