Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Analyze Price Distribution | Numeric Functions
Functions in SQL

bookChallenge: Analyze Price Distribution

Task

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.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 5
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our 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

Swipe to show menu

Task

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.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 5
single

single

some-alt