Predict which orders a filter will drop, nulls included (bakery)
Before a Qty ≥ 3 filter goes live, list exactly the orders it will remove, including the ones with no quantity.
- Level
- intermediate
- Time
- ~8 min
- Task
- Predict a step's result
- Access
- Pro
Checking your access…
About this exercise
What you'll practise
Predict how comparisons with null behave in a row filter.
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 (nullable)
- UnitPrice: number
- OrderDate: text
- Status: text
Expected output columns
OrderID (text), Customer (text), Region (text), Product (text), Qty (number (some rows null)), UnitPrice (number), OrderDate (text), Status (text)