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

bookChallenge: City-Based Sales Analysis

Aufgabe

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ösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 4
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

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

Swipe um das Menü anzuzeigen

Aufgabe

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ösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 4
single

single

some-alt