I guess, this is a simple one. Let's say, I have two tables: [employees] and [projects]
SELECT p.project_name, concat(e.first_name, " ", e.last_name) as employee_name
FROM project p
INNER JOIN employee e on e.project_id = p.id
ORDER by p.project_name
With that SELECT I get
JohnJane Project | John Doe
JohnJane Project | Jane Doe
T Project | Mr. T
But instead I would like to have the names comma-separated in a row:
JohnJane Project | John Doe, Jane Doe
T Project | Mr. T
How can I do that?
Thanks Bernhard