home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.databases.theory:408 comp.databases:6372
- Newsgroups: comp.databases.theory,comp.databases
- Path: sparky!uunet!gatech!darwin.sura.net!mojo.eng.umd.edu!hyu
- From: hyu@eng.umd.edu (Henry K. Yu)
- Subject: Different representation of entity-relation diagrams
- Message-ID: <1992Aug27.154114.23295@eng.umd.edu>
- Date: Thu, 27 Aug 92 15:41:14 GMT
- Organization: University of Maryland, College Park, College of Engineering
- Distribution: usa
- Lines: 32
-
- The entity-relation diagrams that I hav been taught specify relation
- between entities:
- One-to-One:
- +----------+ /----------\ +----------+
- | Entity_1 | <------- | Relation | -------> | Entity_2 |
- +----------+ \----------/ +----------+
- One-to-Many:
- +----------+ /----------\ +----------+
- | Entity_1 | <------- | Relation | ------>> | Entity_2 |
- +----------+ \----------/ +----------+
- Many-to-One:
- +----------+ /----------\ +----------+
- | Entity_1 | <<------ | Relation | -------> | Entity_2 |
- +----------+ \----------/ +----------+
-
- Recently, another method was presented to me. And, I don't understand how it
- works. It specifies the type of relations between each entity and relation,
- not between entity and entity.
-
- +----------+ XXXX /----------\ XXXX +----------+
- | Entity_1 | -------- | Relation | -------- | Entity_2 |
- +----------+ \----------/ +----------+
-
- Where 'XXXX' can be one of 0:0, 0:1, 1:0, 0:N, N:0, 1:1, 1:N, N:1, N:N.
-
- Supposely, someone from MIT came up with this method. Can someone explain
- the advantage of this method? How about ways to map from the former to the
- latter method and vice versa?
-
- Thanks,
- hyu
-
-