Predict how many rows each order becomes when lines are expanded (marketplace)
Before running Expand to New Rows on lines, state how many rows each order will turn into.
- Level
- intermediate
- Time
- ~8 min
- Task
- Predict a step's result
- Access
- Pro
Checking your access…
About this exercise
What you'll practise
Predict row multiplication when expanding a list column, including empty lists.
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
- OrdersJson (file)
- JSON document (parse with Json.Document)
Expected output columns
id (text), Rows (number)