Chapter 6 · Subqueries
01. Products Above Average Price
Easy10 XPE-Commerce
Find all products whose price is above the overall average product price. Return the product name, price, and category_id, sorted 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.