Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Challenge: City-Based Sales Analysis | Joining Tables for Richer Analysis
SQL for Data Analysis

bookChallenge: City-Based Sales Analysis

Uppgift

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.

Lösning

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 3. Kapitel 4
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

Suggested prompts:

Can you explain this in simpler terms?

What are the main benefits or drawbacks?

Can you give me a real-world example?

close

bookChallenge: City-Based Sales Analysis

Svep för att visa menyn

Uppgift

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.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 3. Kapitel 4
single

single

some-alt