Keep order numbers' leading zeros (bakery)
Type a CSV so order numbers stay text (0007, not 7) while quantities and prices become numbers.
- Level
- beginner
- Time
- ~6 min
- Task
- Build the query
- Access
- Pro
Checking your access…
About this exercise
What you'll practise
Choose types deliberately: identifiers are text even when they look like numbers.
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
- OrderFile (file)
- Text file; first line: OrderID,Customer,Qty,UnitPrice
- Every field is text until you set types
Expected output columns
OrderID (text), Qty (number), UnitPrice (number)