Daily Orders Without Extra Work
The daily report must find orders created during 2024-02-01 and keep the same ordering by id. Rewrite the filter so it compares created_at itself to the boundaries of that day, without changing the result.
Original query
SELECT * FROM orders WHERE DATE(created_at) = '2024-02-01' ORDER BY id
Esempio di output atteso
Ecco come appare una risposta corretta — il suo numero di righe è a sé stante, non deve corrispondere alle tabelle dello schema.
| id | status | user_id | created_at |
|---|---|---|---|
| 10 | paid | 1 | 2024-02-01T10:00:00 |
Accedi per vedere la cronologia degli invii
AccediAccedi per usare l'AI Mentor
Accedi