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

bookChallenge: City-Based Sales Analysis

Compito

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.

Soluzione

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 3. Capitolo 4
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

close

bookChallenge: City-Based Sales Analysis

Scorri per mostrare il menu

Compito

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 3. Capitolo 4
single

single

some-alt