sql - Join not working for group_concat set MySQL -
essentially, i'm trying match multiple words same id, not having luck, following works:
select id, group_concat(word order word) theset, count(*) words group id having theset '%foo%bar%' or '%bar%foo%';
but need join on table rest of data need return, following doesn't work:
select words.id, table.id, table.description, words.occurence , group_concat(word order word) theset, count(*) words join table on table.id=words.id group words.id having theset '%foo%bar%' or '%bar%foo%';
i'm not sure what's missing. have scoured net looking solution, know there's lot of resources available sql can't put finger on issue - sorry if there identical question (i didn't see one)
Comments
Post a Comment