Turn minutes into hours and minutes (consulting)
Show each call's duration as whole hours, leftover minutes and a label like 2h 05m.
- Level
- beginner
- Time
- ~7 min
- Task
- Build the query
- Access
- Pro
Checking your access…
About this exercise
What you'll practise
Use integer division and remainders, and pad numbers in text labels.
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
- Calls (table)
- CallID: text
- Minutes: number
Expected output columns
CallID (text), Hours (number), Mins (number), Label (text)