Challenge: Above-Average Customers
Завдання
Swipe to start coding
Write a query using a subquery to find customers with total quantity purchased greater than the average quantity purchased.
- Calculate the total quantity purchased by each customer.
- Calculate the average total quantity purchased across all customers.
- Select only those customers whose total quantity purchased is greater than this average.
- Return the customer ID, first name, last name, and total quantity purchased for each qualifying customer.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 4. Розділ 2
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Чудово!
Completion показник покращився до 5.56
Challenge: Above-Average Customers
Свайпніть щоб показати меню
Завдання
Swipe to start coding
Write a query using a subquery to find customers with total quantity purchased greater than the average quantity purchased.
- Calculate the total quantity purchased by each customer.
- Calculate the average total quantity purchased across all customers.
- Select only those customers whose total quantity purchased is greater than this average.
- Return the customer ID, first name, last name, and total quantity purchased for each qualifying customer.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 4. Розділ 2
single