I need a duplicated on sqlite of the generate_series()
function of PostgreSQL. I have a table where I need to calculate the future payments based in 2 fields:
Date Period
----------------
1-1-2000 60
1-2-2000 40
1-3-2000 50
So, from the first row, I need to build 60 dates starting at 1-1-2000.
I read
How to generate all dates between two dates
and discover that sqlite have CTE! But can't figure out how build the query. The samples I found have values hardcoded.