Make a mixed number/text code column all text (music shop)
Product codes arrive as a mix of numbers (1001) and text (A-17, 0042). Make every code text.
- Level
- beginner
- Time
- ~5 min
- Task
- Build the query
- Access
- Pro
Checking your access…
About this exercise
What you'll practise
Convert a column that mixes value types to one type without losing information.
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
- Catalogue (table)
- Code: number or text
- Product: text
Expected output columns
Code (text), Product (text)