| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: What to call this operator?
Marshall Spight wrote:
> Jan Hidders wrote:
>>Marshall Spight wrote: >> >>The rule is that if we take the natural join of R and S then we can >>derive a candidate key K for the result if K is a candidate key of both >>R and S. Is that what you wanted to hear?
Nope. Consider: R(a, b) = { (1, 2) } and S(b, c) = { (2, 3), (2, 4) }.
> We also need some kind of fallback rule, such that if we cannot
> derive any keys for the relation, then the union of all columns
> is a key.
Indeed. Of course the situation gets much interesting if you also take other constraints into account such as functional dependencies.
![]() |
![]() |