Return the last step, not an earlier one (bakery)
The query builds a Line Total column, but the result doesn't show it: the `in` clause returns an earlier step.
- Level
- beginner
- Time
- ~5 min
- Task
- Fix a broken query
- Access
- Pro
Checking your access…
About this exercise
What you'll practise
Understand that a query's result is the step named after `in`.
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
Expected output columns
OrderID (text), Customer (text), Region (text), Product (text), Qty (number), UnitPrice (number), OrderDate (text), Status (text), Line Total (number)