How can we check membership in a list of values or a continuous range?
IN checks for inclusion in a list, and BETWEEN filters for values within an inclusive range.
Categorical filtering (departments, countries) and range filtering (salary brackets, date windows).
SELECT *
FROM employees
WHERE department IN ('IT', 'HR')
AND salary BETWEEN 40000 AND 80000;Practice typing production-grade SQL code for IN and BETWEEN.