Find the missing numbers in an invoice sequence (tickets)
Invoice numbers should run without gaps. List the numbers missing between the smallest and the largest.
- Level
- intermediate
- Time
- ~8 min
- Task
- Build the query
- Access
- Pro
Checking your access…
About this exercise
What you'll practise
Generate a range with {a..b} and compare lists.
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
- Invoices (table)
- Number: number
Expected output columns
Missing (number)