Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: City-Based Sales Analysis | Joining Tables for Richer Analysis
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
SQL for Data Analysis

bookChallenge: 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 sales and customers tables using the customer_id column.
  • Group the results by the city column from the customers table.
  • Count the number of sales for each city.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 4
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

bookChallenge: 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 sales and customers tables using the customer_id column.
  • Group the results by the city column from the customers table.
  • Count the number of sales for each city.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 4
single

single

some-alt