Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Challenge: Most Popular Product Category | Subqueries in E-commerce Analytics
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Subqueries in SQL

bookChallenge: Most Popular Product Category

Taak

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.

Oplossing

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 6
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

close

bookChallenge: Most Popular Product Category

Veeg om het menu te tonen

Taak

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.

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 6
single

single

some-alt