made changes in task 3, added WHERE with IN
This commit is contained in:
@@ -21,7 +21,7 @@ WHERE price < 100 OR price > 1000;
|
||||
--Задача 3 — Категории для рекламы
|
||||
SELECT id, name, category, price
|
||||
FROM products
|
||||
WHERE (category = 'tablet' OR category = 'smartphone' OR category = 'mouse') AND price < 1000
|
||||
WHERE category IN ('tablet', 'smartphone', 'mouse') AND price < 1000
|
||||
ORDER BY price DESC;
|
||||
|
||||
--TASK 4
|
||||
|
||||
Reference in New Issue
Block a user