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