Това трябва да стане: SELECT City, COUNT(CustomerID) as CustomersPerCity FROM Customers GROUP BY City