I've created the following query for calculating the number of repetitions of an ID in a table.
select count(Hazaa) as Countie from Shazoo
group by Hazaa
Realizing that most of them are equal to 1 (as they should be), I added the condition to only show the faulty ones. However, SQL Server disagrees with me regarding the syntax.
select count(Hazaa) as Countie from Shazoo
where Countie > 1
group by Hazaa
How can I discriminate my results with respect to the number of them?