Is it possible to create a SQL query which will return one column which contains the dates from a given date range (e.g. all dates from last year till today). E.g.
dat
----
2007-10-01
2007-10-02
2007-10-03
2007-10-04
...
I am wondering if this is possible as an alternative to creating a table which holds all those dates precalculated.
Updated: I need a solution for MYSQL. I am not interested in any other DBs in this case.