sql left join where you combine right side field instances into a single csv column result

SELECT left.id, 
       left.name, 
       GROUP_CONCAT(right.tag) AS tags_CSV_list 
FROM support_request left 
JOIN support_request_tags right ON left.id = right.support_request_id
GROUP BY left.id, 
         left.name;

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top