Look up prices by shop and product together (farm shops)
Merge Sales with Prices on both Store and Product, then calculate line revenue.
- Level
- advanced
- Time
- ~10 min
- Task
- Build the query
- Access
- Pro
Checking your access…
About this exercise
What you'll practise
Merge on more than one key column so lookups match the right row.
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
- Product: text
- Qty: number
- Prices (table)
- Store: text
- Product: text
- Price: number
Expected output columns
Store (text), Product (text), Qty (number), Price (number), Revenue (number)