I have these tables in MS Access :
I need a special join query to give me result like following:
list of all words in table 'pat_Words' that have synonyms in table 'pat_Synonyms'
Keen eager,enthusiast,avid
Shelter refuge,sanctuary
I have these tables in MS Access :
I need a special join query to give me result like following:
list of all words in table 'pat_Words' that have synonyms in table 'pat_Synonyms'
Keen eager,enthusiast,avid
Shelter refuge,sanctuary
In mysql
you can do this
select word, group_concat(synonym) from pat_Words join pat_synonyms on pat_Words.word_id = pat_synonyms.word_id group by pat_Words.word_id
See http://dev.mysql.com/doc/refman/5.7/en/group-by-functions.html#function_group-concat