MySQL Forums
Forum List  »  General

Re: Searching on a field from multiple rows matching a groupId
Posted by: Peter Brawley
Date: May 21, 2019 11:41AM

select groupid
from (
  select groupid,group_concat(colx separator '') str
  from mytable 
  group by groupid
) x
where locate('abc',str) && locate('xyz',str);

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.