| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Universal Quantifier
paul c wrote:
> Bob Badour wrote:
>
>> paul c wrote: >> >>> Bob Badour wrote: >>> >>>> ... >>>> >>>>> What formula would express a primary key? >>>> >>>> Faking it heavily, I suggest something along the lines of: >>>> >>>> forall A1(p1,q1) in A(p,q). forall A2(p2,q2) in A(p,q). >>>> if p1 = p2 then q1 = q2; >>>> >>>> where p is actually the set of attributes composing the key and q is >>>> actually the set of dependent attributes. >>>> >>>> One also has to express irreducibility, though. >>> >>> Regarding irreducibility, do we not express it by our choice of p1 and >>> p2? Ie., what we express with a reducible p1 is extraneous? >> >> But one can still express that using not exists and some proper subset >> of P.
That's what reducible means. If a key is reducible, some proper subset of its attributes is also a key. To say that a candidate key is irreducible simply means no such proper subset exhibits the necessary property.
The formulae we discussed earlier express that P is a superkey. The other requirement for a candidate key is irreducibility.
The proof would hold for DEE and DUM because no proper subset of any of their attributes exists. Received on Sat Jan 27 2007 - 17:08:13 CST
![]() |
![]() |