Chapter 6 · Subqueries
09. Above-Average Price List
Medium20 XPE-Commerce
The pricing team wants to identify premium products. List the name and price of all products whose price is above the overall average product price. Sort by price descending.
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.