Challenge: Most Popular Product Category
Tehtävä
Swipe to start coding
Write a query to find the product category with the highest total quantity sold. Do not use subqueries in the FROM clause. Use subqueries only in the WHERE clause or similar constructs to complete this challenge.
- Aggregate the total quantity sold for each product category.
- Identify the maximum total quantity among all categories using a subquery in the WHERE clause.
- Select the category (or categories, in case of a tie) whose total quantity matches this maximum.
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
Mahtavaa!
Completion arvosana parantunut arvoon 5.56
Challenge: Most Popular Product Category
Pyyhkäise näyttääksesi valikon
Tehtävä
Swipe to start coding
Write a query to find the product category with the highest total quantity sold. Do not use subqueries in the FROM clause. Use subqueries only in the WHERE clause or similar constructs to complete this challenge.
- Aggregate the total quantity sold for each product category.
- Identify the maximum total quantity among all categories using a subquery in the WHERE clause.
- Select the category (or categories, in case of a tie) whose total quantity matches this maximum.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 6
single