001Level 1

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.

Peek at the solution?

You can still earn the XP afterwards by submitting a working query — but you'll learn more if you give it one more try.