Lab 4 — More orders than there are orders
Same team, new roles. Keyboard · AI (own device; the assistant's output waits five minutes; never types here) · Checker (says what must stay equal, rise or fall before each query runs; reads each check out).
First minute: the clone finished? Open the folder in VS Code, open notebooks/report.ipynb, pick the .venv kernel, type your names in the Your team cell, and run the three setup cells. Then top to bottom, running each cell as you come to it.
Your work, in report.ipynb. A: five rows of order_payments, the orders by status, and one count. B: your join, from an empty cell: what was paid, by order status, with its check; say what one row is. C: you write it: the orders with more than one payment row, as a view, and a join that shows their payments. D: a colleague's report asks section B's join a different question; then the repair, the one query you compose, with one comment: why the report counted 2,790. E: the supplied check: five numbered lines, PASS or FAIL; then say what one row of your table is, and read its rows.
In section D: the report runs without an error and counts 2,790 paid orders. orders.csv has 2,653 rows. A paid order is an order with at least one payment row, so paid orders cannot be more than orders.
The team next to you at minute 33. The checkpoint is the notebook, on Moodle.