SQL - Advanced Query Patterns
Why does this query fail to find gaps correctly?
SELECT num + 1 AS missing FROM seq WHERE num + 1 <> LEAD(num);
SELECT num + 1 AS missing FROM seq WHERE num + 1 <> LEAD(num);
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions