Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Analyze Price Distribution | Numeric Functions
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Functions in SQL

bookChallenge: Analyze Price Distribution

Opgave

Swipe to start coding

Write a query to find the minimum, maximum, and average product price from the products table.

  • Use the MIN function to get the lowest value in the price column.
  • Use the MAX function to get the highest value in the price column.
  • Use the AVG function to get the average value in the price column.
  • Return these values as min_price, max_price, and avg_price.

Løsning

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 3. Kapitel 5
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 that in simpler terms?

What are the main benefits of this approach?

Are there any common mistakes to avoid with this?

close

bookChallenge: Analyze Price Distribution

Stryg for at vise menuen

Opgave

Swipe to start coding

Write a query to find the minimum, maximum, and average product price from the products table.

  • Use the MIN function to get the lowest value in the price column.
  • Use the MAX function to get the highest value in the price column.
  • Use the AVG function to get the average value in the price column.
  • Return these values as min_price, max_price, and avg_price.

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 3. Kapitel 5
single

single

some-alt