I want to count the number of times a name is produced in a table. I then want to group the output so that it only shows the name once with the count in the next column. So far I have the below code but it keeps giving me an error:
Select Name, count(*) as NoOfTimes
from CustName
where count(*) >= 3
group by Name;