Check out example codes for "mysql concatenate select results". It will help you in understanding the concepts better.

Code Example 1

SELECT person_id, GROUP_CONCAT(hobbies SEPARATOR ', ')
FROM peoples_hobbies
GROUP BY person_id;

Learn ReactJs, React Native from akashmittal.com