Number of customers
You have to give an overview of the number of customers for a presentation.
Questo esercizio fa parte del corso
Data-Driven Decision Making in SQL
Istruzioni dell'esercizio
- Generate a table with the total number of customers, the number of customers for each country, and the number of female and male customers for each country.
- Order the result by country and gender.
Esercizio pratico interattivo
Prova a risolvere questo esercizio completando il codice di esempio.
-- Count the total number of customers, the number of customers for each country, and the number of female and male customers for each country
SELECT country,
gender,
COUNT(*)
FROM customers
___ (___, ___)
___ ___, ___; -- Order the result by country and gender