Hint and exampleShowHide
A row qualifies when either threshold is met, so combine the two conditions with OR.
Example: phones(model, battery_mah, price)
model | battery_mah | price
P1 | 5000 | 15000
P2 | 4000 | 9000
P3 | 4500 | 20000
SELECT model
FROM phones
WHERE battery_mah >= 5000 OR price <= 10000; -- returns P1, P2
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) |