UPDATESQL

Unit 2, lesson 3 · Date ranges, BETWEEN

Filtering a date range

Orders placed in March

To pick out a period, keep dates on or after the start and before the start of the next period. BETWEEN '2026-03-01' AND '2026-03-31' also works here, and it includes both ends.

Example
SELECT id, order_date
FROM orders
WHERE order_date >= '2026-01-01'
  AND order_date < '2026-02-01';

Your task

Finance is closing the books for March 2026. List the id, order date and status of every order placed in that month.

Dates are stored as text like '2026-03-14'.

Tables you will use: orders

Try it in your browserFree, no sign-up. Your query is checked as you go.