Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Challenge: Above-Average Customers | Advanced SQL for Data Analysis
SQL for Data Analysis

bookChallenge: Above-Average Customers

Uppgift

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.

Lösning

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 4. Kapitel 2
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

Suggested prompts:

Can you explain that in more detail?

What are the main benefits or drawbacks?

Can you give me an example?

close

bookChallenge: Above-Average Customers

Svep för att visa menyn

Uppgift

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.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 4. Kapitel 2
single

single

some-alt