| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Box query
Mikito Harakiri wrote:
> The next question that I was going to ask: "find the intersection volume".
Which naturally leads to one more intersection query:
select b1.id as box1, b2.id as box2
from boxes b1, boxes b2
where b1.dim = b2.dim
group by b1.id, b2.id
having 0.1 < exp(sum(ln(
case when b2.low between b1.low and b1.high then b1.high-b2.low
else 0.00000001 end
)))
;
This doesn't look like relational division at all... Received on Fri Apr 21 2006 - 21:49:45 CDT
![]() |
![]() |