I'm trying to return the 'conm' that has 79 rows only.
Here is my query:
SELECT *
FROM combinedata1
WHERE EXISTS (
SELECT conm, COUNT(conm) AS 'Number of Rows'
FROM combinedata1
GROUP BY conm
HAVING COUNT(conm) = 79
)
ORDER BY conm ASC
Apparently, this is returning almost everything, ignoring the conm with 79 rows.
Can anyone shed some light on this?
Thanks.