You could try using group_concat()
select id, name, age, gender, group_concat(hobby) from my_table group by id, name, age, gender
2.1m questions
2.1m answers
60 comments
57.0k users