in reply to Re: Re: Multiple date ranges
in thread Multiple date ranges

You don't need to solve this with SQL if you don't want to. In perl, TMTOWTDI. I would suggest you look at the module Date::Set. You should be able to add to the sets like this:
$a->event( start => '19971024T120000Z', end => '19971025T120000Z' ); # one period $a->event( start => '20001101T120000Z'); # open-ended
Simple set-inclusion queries will tell you who is active on a given date. SQL might be better in the long run, but something like this would get you going.

Replies are listed 'Best First'.
Re: Re: Re: Re: Multiple date ranges
by AndyH (Sexton) on Feb 04, 2003 at 09:05 UTC

    Thanks for this suggestion. Do you think it will scale OK with the 4500+ records and the fact the membership dates go back to 1949?

Re: Re: Re: Re: Multiple date ranges
by AndyH (Sexton) on Feb 04, 2003 at 09:09 UTC

    Just checked the info for Date::Set

    (no support for years outside the 1970-2038 range).

    So, that's no good for me, as I have dates going back to 1949 ...