Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Bestselling Products | Aggregating and Grouping Data
SQL for Data Analysis

bookChallenge: Bestselling Products

Завдання

Swipe to start coding

Write a query to list each product_id and the total quantity sold, ordered by quantity descending.

  • Select product_id and the sum of quantity from the sales table.
  • Group the results by product_id.
  • Order the results by the total quantity in descending order.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 2
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

Suggested prompts:

Can you explain this in simpler terms?

What are some examples related to this topic?

Where can I learn more about this?

close

bookChallenge: Bestselling Products

Свайпніть щоб показати меню

Завдання

Swipe to start coding

Write a query to list each product_id and the total quantity sold, ordered by quantity descending.

  • Select product_id and the sum of quantity from the sales table.
  • Group the results by product_id.
  • Order the results by the total quantity in descending order.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 2
single

single

some-alt