I am working on a function that will take a low number and a high number as paramaters and returns a table containing everything between (and including).
I know I co
Yes, you can use a recursive CTE to do this. For example to generate numbers between 10 and 20 inclusive:
WITH f AS ( SELECT 10 AS x UNION ALL SELECT x + 1 FROM f WHERE x < 20 ) SELECT * FROM f