Sectie 3. Hoofdstuk 4
single
Challenge: City-Based Sales Analysis
Veeg om het menu te tonen
Taak
Veeg om te beginnen met coderen
You have two tables: sales and customers.
sales — records of each individual sale:
customers — information about customers:
Write a query that shows how many sales were made in each city. To do this:
- Join
salesandcustomerson thecustomer_idcolumn. - Group the result by
city. - For each city, count the number of sales using
COUNT()and name the columnsales_count.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 3. Hoofdstuk 4
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.