| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Thinking about MINUS
Bob Badour wrote:
> paul c wrote: >
All this "boolean operations on sets" has me scratching my head. There is, underneath it all, the presumption that one really means "is an element of," right? I mean, what could the meaning of "NOT (strawberry OR apple) AND grape" be?
Here's a good example
>>> NOT operator. NOT(A) = U MINUS A.
of something that requires significant presumptions that I don't think, if I may invent a design on the fly, can be extended to expressions like "NOT product" or "NOT order INTERSECT customer" or "product INTERSECT NOT order INTERSECT customer."
Sure, we can think of JOIN as an analog to AND and UNION as an analog to OR, but they are very different operations.
>>>
>>> Left association. (A MINUS B) MINUS C = (A MINUS C) MINUS B (proof
>>> omitted)
>>>
>>> INTERSECTION. A INTERSECT B = A MINUS (A MINUS B)
>>> = B
>>> MINUS
>>> (B MINUS A)
>>>
>>> UNION. A UNION B = NOT (NOT (A) INTERSECT NOT (B))
>>>
>>> From here, it looks like we can bootstrap our way up to the rest of set
>>> theory and Boolean algebra.
>>> Or am I seeing something wrong (again)?
>>
>>
>> I guess NAND would then be U MINUS A MINUS B, and since NAND is said
>> to be enough to "bootstrap" (I seem to remember), then I'd say you are
>> right but where it leads as far as database is concerned, I don't know.
> > > NAND = U MINUS ( A MINUS ( A MINUS B ) ) > = U MINUS ( B MINUS ( B MINUS A ) ) > > NOR = ( U MINUS A ) MINUS BReceived on Sun Jan 07 2007 - 09:36:17 CST
![]() |
![]() |