Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Above-Average Customers | Advanced SQL for Data Analysis
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
SQL for Data Analysis

bookChallenge: Above-Average Customers

Oppgave

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

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 4. Kapittel 2
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

close

bookChallenge: Above-Average Customers

Sveip for å vise menyen

Oppgave

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 desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 4. Kapittel 2
single

single

some-alt