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

bookChallenge: Customer Sales Report

Task

Swipe to start coding

Write a query to generate a customer sales report by combining data from the customers and sales tables. The report should display each customer's first and last name, along with the quantity for each sale.

  • Join the customers and sales tables using the customer ID.
  • Select the customer's first name and last name.
  • Include the quantity of each sale in the result.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 1
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Suggested prompts:

Can you explain this in simpler terms?

What are the main points I should remember?

Can you give me an example?

close

bookChallenge: Customer Sales Report

Swipe to show menu

Task

Swipe to start coding

Write a query to generate a customer sales report by combining data from the customers and sales tables. The report should display each customer's first and last name, along with the quantity for each sale.

  • Join the customers and sales tables using the customer ID.
  • Select the customer's first name and last name.
  • Include the quantity of each sale in the result.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 1
single

single

some-alt