Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Filter Top Sales | Aggregations for KPIs
SQL for Business Intelligence Analysts

bookChallenge: Filter Top Sales

Opgave

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.

Løsning

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 6
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

Suggested prompts:

Can you explain this in simpler terms?

What are the main points I should remember?

Can you give me an example?

close

bookChallenge: Filter Top Sales

Stryg for at vise menuen

Opgave

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.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 6
single

single

some-alt