task AND / OR / NOT · easy
Open orders in February and March
Return id, status and order_date for orders that are shipped or processing and were placed from 2025-02-01 through 2025-03-31.
what to return
- Columns
idstatusorder_datein this order- Rows
- 4 rows · any order
- Watch for
- Both boundary dates are included.
- Skill
- Combine conditions without precedence mistakes. Refresher: Lists & text patterns →
expected result
Your query should return exactly these columns and values. Run it and compare.
expected result4 rows · any order
| id | status | order_date |
|---|---|---|
| 110 | shipped | 2025-02-12 |
| 113 | processing | 2025-02-19 |
| 121 | shipped | 2025-03-12 |
first 3 of 4 rows
data you can query
Sample rows from each table. Each column shows its type underneath; → marks a link to another table.
sales_orders5 columns · 33 rows
| idinteger · key | shopper_idinteger → shoppers | order_datetext | statustext | delivered_datetext |
|---|---|---|---|---|
| 101 | 1 | 2025-01-04 | delivered | 2025-01-08 |
| 102 | 2 | 2025-01-06 | delivered | 2025-01-07 |
| 103 | 1 | 2025-01-15 | delivered | 2025-01-20 |
| 104 | 3 | 2025-01-18 | cancelled | NULL |
| 105 | 4 | 2025-01-22 | delivered | 2025-01-31 |
showing 5 of 33 rows
solution.sql
Hints and the answer are always available. Using them counts the question as solved with help.