Welcome Back

Google icon Sign in with Google
OR
I agree to abide by Pharmadaily Terms of Service and its Privacy Policy

Create Account

Google icon Sign up with Google
OR
By signing up, you agree to our Terms of Service and Privacy Policy
Instagram
youtube
Facebook

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: