Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Challenge: Segment Sales Data | Aggregations for KPIs
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
SQL for Business Intelligence Analysts

bookChallenge: Segment Sales Data

Tehtävä

Swipe to start coding

Write two SQL queries using the existing sales table to analyze sales performance by product and by customer.

  • The first query must return each product_id along with the total sales amount for that product. Use SUM(total_amount) and group by product_id.
  • The second query must return each customer_id along with the number of orders placed by that customer. Use COUNT(sale_id) and group by customer_id.

Ratkaisu

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 4
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

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

close

bookChallenge: Segment Sales Data

Pyyhkäise näyttääksesi valikon

Tehtävä

Swipe to start coding

Write two SQL queries using the existing sales table to analyze sales performance by product and by customer.

  • The first query must return each product_id along with the total sales amount for that product. Use SUM(total_amount) and group by product_id.
  • The second query must return each customer_id along with the number of orders placed by that customer. Use COUNT(sale_id) and group by customer_id.

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 1. Luku 4
single

single

some-alt