Choose columns when one of them is optional (bike rental)
Some exports include a Notes column and some don't. Keep the same four columns either way.
- Level
- intermediate
- Time
- ~7 min
- Task
- Build the query
- Access
- Pro
Checking your access…
About this exercise
What you'll practise
Use Choose Columns with a missing-field option so an optional column can't break refresh.
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
- Notes: text
Expected output columns
OrderID (text), Customer (text), Qty (number), Notes (text)