In LIKE, % means any number of characters and _ means exactly one: email LIKE '%@example.com' finds one domain.
IN ('Greece', 'Italy') is shorter than several ORs. BETWEEN 100 AND 300 includes both ends, which matters for dates: BETWEEN '2026-01-01' AND '2026-03-31' covers the first quarter.
Worked example
Which products cost between €40 and €100?
SELECT name, price FROM products WHERE price BETWEEN 40 AND 100 ORDER BY price;
| name | price |
|---|---|
| USB-C hub | 45 |
| Bluetooth speaker | 79 |
| Mechanical keyboard | 89 |
Common mistakes
- Forgetting the % in a LIKE pattern, which turns it into an exact match.
- Forgetting that BETWEEN includes both ends.