Fill in missing store–month combinations with zero (kiosks)
Stores with no sales in a month have no row at all, so charts skip them. Produce every store × month pair, with 0 where there were no sales.
- Level
- advanced
- Time
- ~13 min
- Task
- Build the query
- Access
- Pro
Checking your access…
About this exercise
What you'll practise
Build all combinations of two lists (a cross join) and merge the facts onto them.
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
- Sales (table)
- Store: text
- Month: text
- Sales: number
Expected output columns
Store (text), Month (text), Sales (number)