Unit 1, lesson 6 · IN, comparing dates
Lists of values with IN, and comparing dates
Seattle and Boston sign-ups this year
IN is a shortcut for several ORs on the same column: city IN ('Seattle', 'Boston') means city = 'Seattle' OR city = 'Boston'. signup_date is a date column, and a date written in quotes as year-month-day is read as a date, so the usual operators work: signup_date >= '2026-01-01' means on or after January 1, 2026.
SELECT id, order_date, status
FROM orders
WHERE status IN ('cancelled', 'returned')
AND order_date >= '2026-03-01';Your task
List the name, city and signup date of customers in Seattle or Boston who signed up in 2026.
Dates are stored as text in year-month-day form, like '2026-03-14'. Write yours the same way.
Tables you will use: customers
Try it in your browserFree, no sign-up. Your query is checked as you go.