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
Sezione 3. Capitolo 4
single

single

Challenge: City-Based Sales Analysis

Scorri per mostrare il menu

Compito

Scorri per iniziare a programmare

You have two tables: sales and customers.

sales — records of each individual sale:

customers — information about customers:

Write a query that shows how many sales were made in each city. To do this:

  1. Join sales and customers on the customer_id column.
  2. Group the result by city.
  3. For each city, count the number of sales using COUNT() and name the column sales_count.

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

Chieda ad AI

expand

Chieda ad AI

ChatGPT

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

some-alt