| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Hotel Booking dates subquery
Scotty wrote:
>Jan Hidders wrote:
>
>>Ahem, :-), you need to swap the 17-11-02 and the 20-11-02, and, yes, I did
>>check if I read the '<' and '>' correctly. :-) Remember that the formula was:
>>
>> end1 < begin2 or begin1 > end2
>>
>>where one period is [begin1, end1] and the other period is [begin2, end2].
>
>It's all in vain Jan, Damjam has just put the mockers on my query, It
>needs something of an overhaul.
Of course. This was just the first step, i.e., writing a query that finds the bookings that do not overlap with the overlap. As Steve Kass already explained you now have to do the following:
Good luck,
![]() |
![]() |