Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: circular relationships ok?

Re: circular relationships ok?

From: David Portas <REMOVE_BEFORE_REPLYING_dportas_at_acm.org>
Date: 3 Mar 2006 13:00:26 -0800
Message-ID: <1141419626.854405.149500@i39g2000cwa.googlegroups.com>


Alexandr Savinov wrote:

> Now for each order there as an invoice and vice verse (we need of course
> a constraint to enforce one-to-one relationship).

So you DO allow constraints that are cyclical. This constraint (called "N-cardinality", where N=1) applies "in both directions". In a conventional ER diagram this would be shown as a cycle. Your diagrams on the other hand don't seem to model constraints - they show something else that isn't clear to me. That something else doesn't have any cycles.

The OPs original question was specifically about cycles in referential integrity constraints, which you do say you need in your model (you just don't draw pictures of them).

--
David Portas
Received on Fri Mar 03 2006 - 15:00:26 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US