Możesz użyć group_concat
select c.course_code,
c.course_name,
group_concat(concat(s.room, ',', s.day, '-', s.time) separator ';')
from course c
join schedule s on s.course_id = c.id
group by c.course_code,
c.course_name;
Możesz użyć group_concat
select c.course_code,
c.course_name,
group_concat(concat(s.room, ',', s.day, '-', s.time) separator ';')
from course c
join schedule s on s.course_id = c.id
group by c.course_code,
c.course_name;