I know this question has been asked and answered but I just can't seem to get it correct. The following query display two records (UUID, and Role Name). I would like this to be 1 record, with a comma-delimited list of role names in one column.
SELECT
EMP.Employee_UUID, ER.Role_Name
FROM
Employees_To_Roles AS E2R
INNER JOIN
Employee_Roles AS ER ON E2R.Role_ID = ER.Role_ID
AND E2R.App_id = ER.App_id
INNER JOIN
Employees EMP ON E2R.Employee_UUID = EMP.Employee_UUID
WHERE
(E2R.App_id = 2)
ID Roles
---------------------------------
1000 Employee
1000 Developer
I'm trying to get the following:
ID Roles
---------------------------------------
1000 Employee, Developer