This can be done with the aggregate function LIST()
:
This function has the syntax:
LIST ([ALL | DISTINCT] expression [, separator])
So for your problem:
SELECT "Group", LIST(Material, '/') AS Material
GROUP BY "Group"
Note that as Group
is a reserved word, it needs to be quoted. The order of LIST
is not deterministic; sometimes you can enforce it by sorting with a subselect or by using DISTINCT
, but this is not guaranteed behavior.