Move the key column first and keep the rest in order (fleet)
Put AssetID first. Every other column keeps its current order, including columns added in future exports.
- Level
- intermediate
- Time
- ~7 min
- Task
- Build the query
- Access
- Pro
Checking your access…
About this exercise
What you'll practise
Reorder columns with a list computed from the table, so new columns aren't dropped or misplaced.
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
- Assets (table)
- Plate: text
- Make: text
- AssetID: text
- Depot: text
- Mileage: number
Expected output columns
AssetID (text), Plate (text), Make (text), Depot (text), Mileage (number)