I'm using a SELECT statement to select multiple IDs and than use
GROUP BY ID
HAVING COUNT(*) = someNumber
to only have the IDs with a certain count.
What I however actually want to do is to select all those IDs that have the same count that they have in another table. I tried some variations of the following but couldn't get my desired result.
GROUP BY ID
HAVING COUNT(*) = (SELECT COUNT(entryName_ID) FROM entryNames)
Is it even possible to do what I want? And if so how?