I have data like this:
Group   Provider
A       ABC
A       DEF
B       DEF
B       HIJ
And I want to transform the data like this:
Group ProviderList
A      ABC, DEF
B      DEF, HIJ
I was trying something like this using a concat(select distinct...) but not sure if this is the best approach
SELECT distinct
  group, 
  CONCAT(select distinct provider from data)
FROM data 
GROUP BY 1
 
     
    