This query is to show only results having greater than 4 of the same Ocounty.
SELECT COUNT(Ocounty) as Ocounty_count, OID, Xterm
FROM Omessages, Xtable
WHERE Xtable.Xcomment=Omessages.Ocomment AND Omessages.Otype = 'Programmers'
GROUP BY Ocounty_count HAVING Ocounty_count >4
ORDER BY Ocounty
But it errors. How can it be written to work?