Teradata: Results with duplicate values converted into comma delimited strings
问题 I have a typical table where each row represents a customer - product holding. If a customer has multiple products, there will be multiple rows with the same customer Id. I'm trying to roll this up so that each customer is represented by a single row, with all product codes concatenated together in a single comma delimited string. The diagram below illustrates this After googling this, I managed to get it to work using the XMLAGG function - but this only worked on a small sample of data, when