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.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
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.
seq_gap(n) misses some numbers. Return the first missing number of each gap with a self join.