SQL - Common Table Expressions (CTEs)
How can you modify this recursive CTE to generate a series of squares from 1 to 5?
WITH RECURSIVE seq AS (SELECT 1 AS n UNION ALL SELECT n + 1 FROM seq WHERE n < 5) SELECT n*n AS square FROM seq;
