db.l3.ai

Play

lessons

what-changed-in-19

editor

engine: not started

results

Run a query to see rows here.

check

Gaps by self join

seq_gap(n) holds 1 to 20 with some numbers removed. A row n is the start of a gap when n + 1 is missing.

task

seq_gap(n) misses some numbers. Return the first missing number of each gap with a self join.

hints