use sql count in where clause code example
Example: SQL only show where count is great than 1
SELECT COUNT( * )
FROM agents
HAVING COUNT(*)>1; --count is greater than 1
SELECT COUNT( * )
FROM agents
HAVING COUNT(*)>1; --count is greater than 1