Clean both keys before merging (cycles)
Customer names in Orders and Customers differ in case and stray spaces, so the merge misses matches. Clean the keys and merge.
- Level
- intermediate
- Time
- ~9 min
- Task
- Build the query
- Access
- Pro
Checking your access…
About this exercise
What you'll practise
Normalise join keys on both sides so equal values really are equal.
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
- Customers (table)
- Customer: text
- City: text
Expected output columns
OrderID (text), Customer (text), City (text)