db.l3.ai

Play

lessons

what-changed-in-19

editor

engine: not started

results

Run a query to see rows here.

check

Gaps with lag

A gap in a numeric sequence shows up as a jump from the previous value.

task

seq_gap(n) lacks some numbers between 1 and 20. Return the first missing number of each gap (4, 11 and 17), using lag().

hints