Challenge: Top 3 Customers
Завдання
Swipe to start coding
Write a query to find the top 3 customers by total quantity purchased. Use a window function to rank customers by the sum of their purchased quantities.
- Calculate the total quantity purchased for each customer.
- Rank customers based on their total quantity purchased, with the highest quantity receiving rank 1.
- Select only the top 3 customers according to this ranking.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 4. Розділ 4
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Чудово!
Completion показник покращився до 5.56
Challenge: Top 3 Customers
Свайпніть щоб показати меню
Завдання
Swipe to start coding
Write a query to find the top 3 customers by total quantity purchased. Use a window function to rank customers by the sum of their purchased quantities.
- Calculate the total quantity purchased for each customer.
- Rank customers based on their total quantity purchased, with the highest quantity receiving rank 1.
- Select only the top 3 customers according to this ranking.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 4. Розділ 4
single