Chapter 5 · JOINs
02. Products with Category Names
Easy10 XPE-Commerce
The catalog page needs product listings with category labels. Return product name, price, stock_quantity, and category name for all products, sorted by category name then product name.
Tables
- PKidINT
- nameTEXT
- descriptionTEXT
- 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.