Challenge: City-Based Sales Analysis
Task
Swipe to start coding
Write a query to analyze how many sales have occurred in each customer city. Your query should:
- Join the
salesandcustomerstables using thecustomer_idcolumn. - Group the results by the
citycolumn from thecustomerstable. - Count the number of sales for each city.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 4
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 5.56
Challenge: City-Based Sales Analysis
Swipe to show menu
Task
Swipe to start coding
Write a query to analyze how many sales have occurred in each customer city. Your query should:
- Join the
salesandcustomerstables using thecustomer_idcolumn. - Group the results by the
citycolumn from thecustomerstable. - Count the number of sales for each city.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 4
single