| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: View challenge
paul c wrote:
> J M Davitt wrote: >
> > > Or, is this a good reason for an implementation that supported <NOT> ala > TTM, eg., take the product of the complement of two empty relations and > theta join with the desired range? Optimizer/compiler would have to be > smart enough to not materialize the complete complements, I guess. > > p
[Paul, you're killing me: the complement of nothing, indeed.]
Here's the rub: there is nothing holding all values of "the specified range." His question described an instant and a period which are to be used to generate some intervals which are then matched to some others.
If there existed a relation holding all the instants and operations on intervals were available, he could do this with query language. But there isn't and there aren't, so he can't. (And the last thing I want to hear is, "Oh, no: SQL has INTERVALs. It says so in the book and the standard!")
Can it be done in procedural language? Absolutely. Given SQL's limits, that's the way to do it. Received on Sat Aug 12 2006 - 20:59:54 CDT
![]() |
![]() |