MySql JOIN table as content? -
i have table of contact details (name, province, etc) , have table of 1 word answers , have same user id. want join 1 word answers contact details get.
first name, last name, province, email, list of 1 word answers separated , or character
i know need sub select how can take values , separate them character , return in main select?
you can of group_concat :
select name, province, (select group_concat(word) answers a.user_id = c.user_id) words contacts c
Comments
Post a Comment