Challenge: Filter Top Sales
Tehtävä
Swipe to start coding
Write an SQL query to find all product categories where the total sales amount is greater than 150.
- Group the sales data by product category.
- Calculate the total sales amount for each category.
- Use the HAVING clause to return only those categories where the total sales amount exceeds 150.
- Your result should include the product category and the total sales amount for each qualifying category.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 6
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Mahtavaa!
Completion arvosana parantunut arvoon 5.56
Challenge: Filter Top Sales
Pyyhkäise näyttääksesi valikon
Tehtävä
Swipe to start coding
Write an SQL query to find all product categories where the total sales amount is greater than 150.
- Group the sales data by product category.
- Calculate the total sales amount for each category.
- Use the HAVING clause to return only those categories where the total sales amount exceeds 150.
- Your result should include the product category and the total sales amount for each qualifying category.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 6
single