Answers for "get comma separated values in mysql with group by"

SQL
0

get comma separated values in mysql with group by

SELECT p.id, p.name, GROUP_CONCAT(s.name) AS site_list
FROM sites s
INNER JOIN publications p ON(s.id = p.site_id)
GROUP BY p.id, p.name;
Posted by: Guest on March-29-2022

Code answers related to "get comma separated values in mysql with group by"

Code answers related to "SQL"

Browse Popular Code Answers by Language