Path: news.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!newsfeed.news2me.com!aotearoa.belnet.be!naxos.belnet.be!news.belnet.be!news.uia.ac.be!not-for-mail
From: hidders@hcoss.uia.ac.be (Jan.Hidders)
Newsgroups: comp.databases.theory
Subject: Re: Weak Entity
Date: 14 Oct 2002 11:29:46 +0200
Organization: University of Antwerp
Lines: 44
Message-ID: <3daa8e8a$1@news.uia.ac.be>
References: <aoc55a$kdv$1@news.ctimail.com> <3da9d555$1@news.uia.ac.be> <aod8v1$5qi$1@news.ctimail.com>
NNTP-Posting-Host: hnets.uia.ac.be
X-Trace: naxos.belnet.be 1034587791 28130 143.169.254.1 (14 Oct 2002 09:29:51 GMT)
X-Complaints-To: abuse@belnet.be
NNTP-Posting-Date: Mon, 14 Oct 2002 09:29:51 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: hidders@hcoss.uia.ac.be (Jan.Hidders)
X-Original-NNTP-Posting-Host: hmacs.uia.ac.be
X-Original-Trace: 14 Oct 2002 11:29:46 +0200, hmacs.uia.ac.be
Xref: newsfeed1.easynews.com comp.databases.theory:22954
X-Received-Date: Mon, 14 Oct 2002 04:00:50 MST (news.easynews.com)

In article <aod8v1$5qi$1@news.ctimail.com>,
Peter Kwok <peterkwok628@yahoo.com> wrote:
>> >In ER diagram, should weak entity be related to strong entity in 1-N
>> >relationship?
>> >i.e.
>> >Correct:
>> >Strong Entity----------(1)-Relate-(N)----------Weak Entity
>> >
>> >Wrong:
>> >Strong Entity----------(M)-Relate-(N)----------Weak Entity
>>
>> No.
>>
>> For example:
>>
>>   Element --(M)-Is_contained_in-(N)-- Non-empty_Set
>>
>> Clearly non-empty sets cannot exist without their elements and they have
>> no attributes to form a key.
>>
>> However, some definitions of the ER model do have this restriction, so it
>> also depends a bit on what book you are using and how smart your
>> instructor is. :-)
>
>However, how can weak NON_EMPTY_SET be uniquely identified by relating to
>its partner-ELEMENT under such many-many relationship?

In the ER model or in the relational model you map it to? The usual mapping
is that you include the key of the strong entity that the weak entity
depends upon with the relation for the weak entity. And that indeed does not
work if you have a M-N relationship, so you do have a problem in your
mapping then. But this is a problem of the mapping, not of the relational
model or the ER model.

- Jan Hidders




>//Peter
>
>


