Syntax: Recursion in SQL. • ID: #100 Code WITH RECURSIVE t(n) AS ( SELECT 1 UNION ALL SELECT n+1 FROM t WHERE n < 8 ) SELECT * FROM t; Notes You can copy this snippet and adapt it. For advanced, add real-world inputs, edge cases, and tests. ← Prev Next →