| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Box query
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)
>>}
Changing the having clause won't fix a problem that already happened before the having clause is applied.
>>It doesn't have the correct intersection volume of (1,2,4), which is >>what I thought the query was supposed to return. And if one has two >>intersecting hyperboxes that abutt, one could argue that it should >>return a row indicating a zero-volume intersection. Your having clause >>will simply remove the result.
I already posted a corrected query that works. You will have to check your own work from here on out; otherwise, see my remarks above about changing the having clause to fix a problem that occurs before it even sees the data. Received on Sat Apr 22 2006 - 19:50:07 CDT
![]() |
![]() |