IN and BETWEEN
Lesson 6 of 24 · SQL.Micro
Two shortcuts keep conditions short: IN checks a list of values, BETWEEN checks a range, ends included.
Dates stored as YYYY-MM-DD text sort correctly, so ranges work.
Check yourself
Does BETWEEN 10 AND 20 include 20?
Show id and order_date of every order placed in March 2026 (1st to 31st, inclusive).
Do it in the browser: a real SQL tool, a short mission and instant feedback. No install.
Start this lesson — free