Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Challenge: High-Volume Customers | Aggregating and Grouping Data
SQL for Data Analysis

bookChallenge: High-Volume Customers

Tehtävä

Swipe to start coding

Write a query to list the customer_id and the total quantity purchased for each customer, but only include those customers whose total quantity purchased is greater than 5.

  • Select the customer_id and the sum of quantity as total_quantity from the sales table.
  • Group the results by customer_id.
  • Only include customers whose total quantity purchased is greater than 5.

Ratkaisu

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 2. Luku 3
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

Suggested prompts:

Can you explain this in simpler terms?

Can you give me an example?

What are the next steps I should take?

close

bookChallenge: High-Volume Customers

Pyyhkäise näyttääksesi valikon

Tehtävä

Swipe to start coding

Write a query to list the customer_id and the total quantity purchased for each customer, but only include those customers whose total quantity purchased is greater than 5.

  • Select the customer_id and the sum of quantity as total_quantity from the sales table.
  • Group the results by customer_id.
  • Only include customers whose total quantity purchased is greater than 5.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 2. Luku 3
single

single

some-alt