| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: About Entity Relation Diagram
Mike MacSween wrote:
> "Gene Wirchenko" <genew_at_mail.ocis.net> wrote in message
> news:nmd3s0tioi7mscglip37208g0u45g5v3tt_at_4ax.com...
>
>
>
>>>I do, however, have another question. What will the primary key of the >>>entity INTERESTS and APPEARANCE be? I read somewhere that when relating 2 >>>entities with a relation, the relation doesn't have to include the primary >>>keys of the entities it relates. For example, between member and tape, the >>>relation RENTAL doesn't have to include MemverID and TapeID, only DateRent >>>and DateDue. >> >> This is not correct. You need to have the keys. What you do not >>do is show them when at the logical level. They are implied. (Think >>of how you would use that relation. You need to have the keys.)
Keys also need to be shown in the ER model, as well.
Source : Bernhard Thalheim "Entity-Relationship Modeling: Foundations of Database Technology" Springer-Verlag 2000.
They are very important to validate that your model corresponds to the reality.
And because the conceptual model is supposed to capture business rules, if you don't capture key constraints in the E/R model, where will the database schema designer gets his key definition from ?
Of course theres also the possibility of not bothering to create a conceptual model at all, and go directly to logical model. Less diagrams to go out of sync and less hassles, more risk that some stuff may remain undocumented. It's a trade-off based on staffing, bandwidth, priorities.
For some projects ER diagrams is overkill and inefficient investment of time, for others ER diagrams may be critical. Received on Fri Dec 17 2004 - 13:15:15 CST
![]() |
![]() |