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

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -