| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Box query
Mikito Harakiri wrote:
> Bob Badour wrote:
>
>>Mikito Harakiri wrote:
>>
>>
>>>Bob Badour wrote:
>>>
>>>
>>>>If you take a look at the second-to-last step, your query failed before
>>>>it got to the having clause:
>>>>
>>>>Let tmp1 = { (box1,box2,exp(sum(ln(...)))) |
>>>> (1,1,6), (1,2,3e-8),
>>>> (2,1,3e-8), (2,2,6)
>>>>}
>>>
>>>All right, let's make the case condition symmetric:
>>>
>>>having 1 = exp(sum(ln(
>>> case when b2.low between b1.low and b1.high
>>> *or* b1.low between b2.low and b2.high
>>>then 1 else 0.00000001 end)))
>>
>>Changing the having clause won't fix a problem that already happened
>>before the having clause is applied.
How do those 1's get you your volume? For instance, the volume of box 1 intersected with itself is 6 not 1. The volume of box 1 intersected with box 2 is 4 not 1. Received on Sat Apr 22 2006 - 22:51:50 CDT
![]() |
![]() |