Challenge: Above-Average Customers
Compito
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.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 4. Capitolo 2
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Suggested prompts:
Can you explain that in more detail?
What are the main benefits or drawbacks?
Can you give me an example?
Fantastico!
Completion tasso migliorato a 5.56
Challenge: Above-Average Customers
Scorri per mostrare il menu
Compito
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.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 4. Capitolo 2
single