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

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -