#980

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

Δείγμα αναμενόμενης εξόδου

Έτσι μοιάζει μια σωστή απάντηση — το πλήθος γραμμών της είναι δικό της, δεν χρειάζεται να ταιριάζει με τους πίνακες του σχήματος.

idstatususer_idcreated_at
10paid12024-02-01T10:00:00

Το αποτέλεσμα του ερωτήματός σας θα εμφανιστεί εδώ