Add a running total in date order (school)
Sort claims by date, then add a Running Total of Amount from the first claim to each row.
- Level
- advanced
- Time
- ~12 min
- Task
- Build the query
- Access
- Pro
Checking your access…
About this exercise
What you'll practise
Compute a cumulative value over 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), ClaimDate (text), Amount (number), Running Total (number)