in reply to MySQL query question...

I have been working on the same problem ( in QT-C++ though). I decided that the best method would be to make an iterator that would generate each date between start date and end date . This is very close to what you are proposing, except that I would dynamically generate the dates because I do not see the feasbility of generating a table that contains all the dates from some_past_date to infinity (which is how long I hope people use my application:)

I am glad you ask the question though, because I am interested in hearing peoples opinions.

"Never take yourself too seriously, because everyone knows that fat birds dont fly" -FLC

Replies are listed 'Best First'.
Re^2: MySQL query question...
by CountZero (Bishop) on Aug 09, 2005 at 20:06 UTC
    Did you already have a look at DateTime::Set?

    It can provide you with a set of (recurring) dates extending back from and towards infinity (hey, now all people in the past can start using your module too!)

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law