Skip to content
Advertisement

SQL Query subquery with COUNT()

I’m trying to return the ‘conm’ that has 79 rows only.

Here is my query:

Apparently, this is returning almost everything, ignoring the conm with 79 rows.

Can anyone shed some light on this?

Thanks.

Advertisement

Answer

You should have where inside exists as following

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement