Desea usar HAVING para filtrar en la función agregada.
SELECT name, COUNT(*)
FROM mytable
GROUP BY name
HAVING COUNT(*) > 1
Desea usar HAVING para filtrar en la función agregada.
SELECT name, COUNT(*)
FROM mytable
GROUP BY name
HAVING COUNT(*) > 1