Re: circular relationships ok?
From: Jan Hidders <jan.hidders_at_REMOVETHIS.pandora.be>
Date: Sun, 05 Mar 2006 12:18:20 GMT
Message-ID: <gGAOf.296091$IR1.9311296_at_phobos.telenet-ops.be>
Date: Sun, 05 Mar 2006 12:18:20 GMT
Message-ID: <gGAOf.296091$IR1.9311296_at_phobos.telenet-ops.be>
Brian Selzer wrote:
>
> In other words, a database schema consisting of the relation schemata,
>
> R{A, B}, S{B, C}, and T{C, A}
>
> and the foreign key constraints,
>
> R(B) --> S(B), S(C) --> T(C), T(A) --> R(A)
>
> is equivalent to a database schema consisting of the same relation schemata
> and the foreign key constraints,
>
> R(A) --> T(A), T(C) --> S(C), S(B) --> R(B)
>
> is equivalent to a database schema consisting of the relation schema
>
> U(A, B, C) where A, B, and C are candidate keys.
Actually, none of them are equivalent. Consider the following database instances: (formatted assuming fixed width font)
R : A B S : B C T : C A
- --- --- 1 2 2 3 3 1 4 3
- U(A,B,C) with cand. keys {A}, {B} and {C}
So perhaps that is what you meant?
- Jan Hidders