IN and BETWEEN
Shortcuts for lists and ranges.
IN checks whether a value is in a list: genre IN ('Mystery', 'History') is a short way to write two ORs. BETWEEN checks a range: year BETWEEN 2015 AND 2019 includes both ends, so it means year >= 2015 AND year <= 2019. You can put NOT in front of either: NOT IN, NOT BETWEEN.
SELECT name, city FROM members
WHERE city IN ('Hillview', 'Lakeside');The same members as city = 'Hillview' OR city = 'Lakeside', with less typing. Long lists stay readable.
BETWEEN works for text and dates too, because they can be compared. Dates written like '2024-03-01' sort correctly as text; you will use this later.