Number claims in date order (consultancy)
Sort claims by date and add a Line number starting at 1.
- Level
- beginner
- Time
- ~5 min
- Task
- Build the query
- Access
- Pro
Checking your access…
About this exercise
What you'll practise
Add an index column after establishing an explicit order.
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
- Claims (table)
- ClaimID: text
- Employee: text
- Category: text
- Amount: number
- Currency: text
- ClaimDate: text
- Approved: text
Expected output columns
ClaimID (text), Employee (text), Category (text), Amount (number), Currency (text), ClaimDate (text), Approved (text), Line (number)