Debug a city revenue report with three bugs (bike rental)
The starter runs, but its numbers are wrong in three places. Find and fix each bug.
- Level
- advanced
- Time
- ~15 min
- Task
- Fix a broken query
- Access
- Pro
Checking your access…
About this exercise
What you'll practise
Debug a working-but-wrong query step by step against a written specification.
The scenario, sample data, step list, hints and solution open with Pro. Grading checks your query against hidden data as well as the visible sample, so a query that only fits the sample doesn't pass.
Input
- Orders (table)
- OrderID: text
- Customer: text
- Region: text
- Product: text
- Qty: number
- UnitPrice: number
- OrderDate: text
- Status: text
- Customers (table)
- Customer: text
- City: text
Expected output columns
City (text), Revenue (number)