WHERE · dates

Filter orders by month

Which orders were placed in November 2026? Show them in date order.

SQLite
RESULTSReady to run
Compare with the solution

There are four orders, numbered 1005 through 1008.

SELECT id AS pedido_id, fecha
FROM pedidos
WHERE fecha >= '2026-11-01' AND fecha < '2026-12-01'
ORDER BY fecha ASC, id ASC;
pedido_idfecha
10052026-11-02
10062026-11-12
10072026-11-20
10082026-11-24