You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

distinct group_concat

Accepted answer
edited Jan 8, 2019 4:36PM in Reporting & Analytics for B2C Service 33 comments


How to get a group concat to only show distinct values?



I have a parent table with two children tables (siblings).  I need information from one child table summed and information from another child table group concatenated.  I have the report working as intended, however, the group_concat function is repeating the values for child table 2, once for each member of child table 1 even though child table 1 is only represented in the report using a Sum function.

How do I get the duplicate group_concat values to be eliminated? In otherwords, I want the group_concat function to only show unique values.  I've tried distinct and first and last without success.

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!