Instagram
youtube
Facebook
Twitter

Count Total Customers Per Country

Count Total Customers Per Country

Customers Table:



Query Explanation:

  • SELECT Country: Retrieves the country of each customer.

  • COUNT(*): Counts the number of customers in each country.

  • GROUP BY Country: Groups the customers by country so the count is per country.

SQL Query:

SELECT 
    Country,
    COUNT(*) AS TotalCustomers
FROM Customers
GROUP BY Country;

Output: