home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.oracle
- Path: sparky!uunet!wupost!uwm.edu!spool.mu.edu!darwin.sura.net!jvnc.net!synapse.bms.com!watson.bms.com!sinha
- From: sinha@watson.bms.com (Anil Sinha)
- Subject: data modelling, ER diagram
- Message-ID: <11SEP199212091688@watson.bms.com>
- News-Software: VAX/VMS VNEWS 1.4-b1
- Keywords: data modelling, ER diagram
- Sender: news@synapse.bms.com
- Organization: X
- Date: Fri, 11 Sep 1992 17:09:00 GMT
- Lines: 58
-
- Heres a question for data modellers.
-
- How does one incorporate the restriction that a given relation is a subset of
- another relationship ?
-
- Assume we have these entities:
-
- Grant: Approved grants
- Party: Parties working on grants
- Payments: payments made to parties
-
- There is another entity "grant and party" which shows many to many
- relationship between grant and party. The entity payment is payment to a party
- and could be made against many grants. So there is another entity "payment and
- grant" which shows many to many relationship between payment and grant.
- So a given payment to party should be made against grants which are valid within
- the entity "grant and party" for the given party. Can this restriction be
- modelled within the ER diagram ?
-
- Heres the ER diagram without this restriction.
-
- Now heres the ER diagram.
-
-
- |-------| |-----------------|
- | | | |
- |Grant |\ | |
- |and |----------------------------------................| |
- |Party |/ | Party |
- | | | |
- |-------| |---------| | |
- \|/ | |\ | |
- | | Payment |---------...............| |
- | | |/ | |
- | |---------| | |
- . | |-----------------|
- . |
- . |
- . /|\
- |-------| |---------|
- | | /|Payment |
- |Grant |.........------| and |
- | | \|Grant |
- |-------| | |
- |---------|
-
-
- Can this only be done at the application or database level ? Is there any other
- way to model this case ?
-
-
- Thanks in advance.
-
- ********************************************************************************
- Include Standard Disclaim:
- ********************************************************************************
- Anil Sinha Work:(609) 252 4788
- Email:sinha@watson.bms.com
-