Chapter 4 · Aggregations
05. Highest and Lowest Priced Products
Easy10 XPE-Commerce
The pricing analyst needs a quick snapshot of the product price range. Write a single query that returns the minimum price, maximum price, and the difference between them (as price_range).
Tables
- PKidINT
- nameTEXT
- FKcategory_id→ categories.idINT
- priceREAL
- costREAL
- stock_quantityINT
- created_atTIMESTAMP
Need help?
Ask Sol
AI tutor — looks at your current query and nudges you, without spoiling the answer.
Solution
Try the hints first — solving it yourself is what makes it stick.