Subject | Re: [ib-support] Sql Query |
---|---|
Author | Woody |
Post date | 2001-08-02T15:31:16Z |
From: "Svein Erling Tysvær" <svein.erling.tysvaer@...>
Sent: Thursday, August 02, 2001 10:16 AM
c) When a reservation has departure between :arrival and :departure
Woody
Sent: Thursday, August 02, 2001 10:16 AM
> 2) The query only checks those records where the room_type isAlmost. You forgot to check if the departure date also is between the dates.
> reserved/checked in for parts of the stay. I think you can get away with
> two checks, though:
>
> a) When a reservation has arrival < :arrival and departure > :arrival
> b) When a reservation has arrival > :arrival and arrival < :departure
>
c) When a reservation has departure between :arrival and :departure
Woody