SQL - Advanced Query Patterns
Identify the error in this query to find gaps:
SELECT num + 1 AS missing FROM seq WHERE num + 1 = LEAD(num) OVER (ORDER BY num);
SELECT num + 1 AS missing FROM seq WHERE num + 1 = LEAD(num) OVER (ORDER BY num);
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions