Dit zou het moeten doen: SELECT City, COUNT(CustomerID) as CustomersPerCity FROM Customers GROUP BY City