A buyer at "Kotomarket" is planning purchases and wants to know which suppliers cover which categories in the mid price range.
The products table stores the shop's items: title, category, supplier, price, and stock on hand.
Return the unique combinations of category and supplier (category, supplier) only for items that satisfy both conditions at the same time:
- the price (price) is in the range from 500 to 2500 inclusive;
- the category (category) is one of: 'мебель', 'корм', 'игрушки'.
Each category–supplier pair must appear in the result exactly once (no duplicates). Sort the result by category, then by supplier (ascending).
Constraints: only SELECT … WHERE … ORDER BY with DISTINCT, BETWEEN, and IN. No aggregates, GROUP BY, JOIN, subqueries, or window functions.
Expected columns: category, supplier.
Entre para ver seu histórico de envios
EntrarEntre para usar o AI Mentor
Entrar