Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: City-Based Sales Analysis | Joining Tables for Richer Analysis
SQL for Data Analysis
Seção 3. Capítulo 4
single

single

Challenge: City-Based Sales Analysis

Deslize para mostrar o menu

Tarefa

Deslize para começar a programar

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.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 4
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

some-alt