Recyclable and Low Fat Products
EasyLeetCodeSQL: SELECT & Filtering
Hint and exampleShowHide
Keep only the rows that satisfy two equality conditions at once by joining them with AND.
Example: foods(item, is_veg, is_spicy)
item | is_veg | is_spicy
Paneer | Y | Y
Chicken | N | Y
Dal | Y | N
SELECT item
FROM foods
WHERE is_veg = 'Y' AND is_spicy = 'Y'; -- returns Paneer
More in SQL: SELECT & Filtering
| # | Problem | Platform | Difficulty | Open | 1st1st Visit | 2nd2nd Visit | RevRevise |
|---|---|---|---|---|---|---|---|
| 1 | Recyclable and Low Fat Products | LeetCode | Easy | Solve Recyclable and Low Fat Products on LeetCode (opens in a new tab) | |||
| 2 | Big Countries | LeetCode | Easy | Solve Big Countries on LeetCode (opens in a new tab) | |||
| 3 | Article Views I | LeetCode | Easy | Solve Article Views I on LeetCode (opens in a new tab) | |||
| 4 | Not Boring Movies | LeetCode | Easy | Solve Not Boring Movies on LeetCode (opens in a new tab) | |||
| 5 | Find Customer Referee | LeetCode | Easy | Solve Find Customer Referee on LeetCode (opens in a new tab) |