Append store and web sales with different column names (garden centre)
Align WebSales column names to StoreSales before appending, and see where nulls come from.
- Level
- intermediate
- Time
- ~9 min
- Task
- Build the query
- Access
- Pro
Checking your access…
About this exercise
What you'll practise
Align schemas before appending and predict nulls from columns that exist in only one table.
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
- StoreSales (table)
- Ref: text
- Item: text
- Amount: number
- WebSales (table)
- OrderRef: text
- Item: text
- Total: number
- Coupon: null only
Expected output columns
Ref (text), Item (text), Amount (number), Coupon (null)