Chapter 2 · Filtering
05. Low-Stock Products
Easy10 XPE-Commerce
The warehouse manager needs to know which products are running low. List the product name, category_id, and stock_quantity for every product where stock_quantity is less than 10, sorted by stock_quantity ascending, then by name.
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.