SQL - Common Table Expressions (CTEs)
Why does this recursive CTE cause an error or infinite loop?
WITH RECURSIVE tally AS (SELECT 1 AS num UNION ALL SELECT num + 1 FROM tally) SELECT * FROM tally WHERE num <= 5;
