I have maybe a dumb question? Anyways, I can't figure it out.
blah blah
GROUP BY cp.c, cp.r
HAVING COUNT(*) = (SELECT COUNT(cp.r)
FROM cp
WHERE cp.r IN (SELECT cr.r
FROM cr
WHERE cr.r LIKE '%blah&'));
SELECT cr.r has multiple values and it works alright
The problem is in HAVING COUNT(*) = (SELECT COUNT(cp.r)) Can I even do that?
So far the query returns nothing which should not happen according to the data.