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

bookChallenge: Most Popular Product Category

Tarefa

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.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 6
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

close

bookChallenge: Most Popular Product Category

Deslize para mostrar o menu

Tarefa

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.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 6
single

single

some-alt