Using a recursive CTE, return n and factorial for n = 1 to 10.
n
factorial
This question starts with an empty database.
10 rows with columns n, factorial — first 3 shown:
Run your code to see the output here.