#1011

Explicit Status List

The operations report needs orders that are not paid, which in this data means pending and cancelled. Rewrite the filter as an explicit list of needed statuses and keep sorting by id.

Original query
SELECT * FROM orders WHERE status <> 'paid' ORDER BY id

Примерен очакван изход

Така изглежда правилният отговор — броят редове е негов собствен, не е задължително да съвпада с таблиците в схемата.

idstatususer_idcreated_at
13pending32024-02-05T14:00:00
14cancelled42024-02-06T16:00:00
15pending22024-02-07T11:00:00

Резултатът от заявката ти ще се покаже тук