| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Box query
Bob Badour wrote:
> Mikito Harakiri wrote:
>
>> Mikito Harakiri wrote: >> >>> Given a set of n-dimensional boxes >>> >>> table boxes ( >>> dimension# integer, >>> low integer, >>> high integer >>> ) >>> >>> find all the pairs that intersect... >> >> >> >> And those pairs supposed to be what? Right, box ids: >> >> table boxes ( >> *id* integer, >> dimension# integer, >> low integer, >> high integer >> ) >>
Excellent! "not exists (no overlaps)." I like it. I was thinking "exists (all overlap)."
I think
and (b4.high <= b3.low or b4.low >= b3.high)
prevents responses where the boxes abut each other; although not stated, I don't think that sharing part of an edge - even a single point - means that boxes intersect. I'm guessing the volume of the intersection s/b > 0. Received on Fri Apr 21 2006 - 21:31:09 CDT
![]() |
![]() |