Hi,
Any idea why my code would work on MySQL Workbench and not on myDBR?
select Name, Categories from (
select concat_ws(', ', c.first_name, c.last_name) as 'Name', group_concat(name) as 'Categories'
from contacts c
inner join contacts_categories e on (e.contacts_categories_contacts_ida = c.id and e.deleted = 0)
inner join categories o on (e.contacts_categories_categories_idb = o.id and o.deleted = 0)
group by c.id) t
where instr(Categories, (select group_concat(name) from categories where name in ('Cape','Financial Services','Management')))
Thanks a lot in advance,
Songezo