Skip to content
We areTOP 1%

Big Countries

EasyLeetCodeSQL: SELECT & Filtering
Solve on LeetCode(opens in a new tab)
Track your progress
First attempt
Re-solve after a few days
Final pass before interviews
Hint and exampleShow

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

Sign in to track your progress

Your checkboxes, streak and activity heatmap are saved to your account and sync across devices. It is free.
Sign in with email

New here? Create an account