Then you need a reference table of dates, so you can query what IS NOT
there. You can hit this table like this:
select date
from datetable
where date BETWEEN x AND y
and date NOT IN (select distinct date from reservation where date
between x AND y)
right?
-jc
Barney Boisvert wrote:
>here's a timeline in days (if you don't have fixed-width font, C&P
>into something that does):
>
>123456789
>xxx reservation 1
> xxx reservation 2
> x reservation 3
> qqqqq desired range
>
>there are two possible days available: 4 and 6. That's the problem
>he's trying to solve.
>
>cheers,
>barneyb
>
>On 7/28/05, Jennifer Larkin <[EMAIL PROTECTED]> wrote:
>
>
>>Something like this wouldn't handle them
>>where arrivaldate >= #arrivaldate# and departuredate <= #departuredate#
>>
>>?
>>
>>Maybe I don't understand what you are trying to do?
>>
>>
>>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213229
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54