The Artima Developer Community
Sponsored Link

Design Forum
Database design

2 replies on 1 page. Most recent reply: Jun 1, 2005 5:00 AM by Franco Martinig

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
thong

Posts: 1
Nickname: pine
Registered: Mar, 2005

Database design Posted: Mar 31, 2005 12:56 AM
Reply to this message Reply
Advertisement
Hi everybody,

Please help me. Following is my problem:

When an Entity relates to another entity by relationship(n - n). For example, an Entity "A" has many Entities "B", and an Entity "B" has many Entities "A", so this relationship creates an Entity "C" between them. Besides, Entity "C" may have some properties.

My question is that can Entity "C" play as primary key or foreign key for another Entity.

Please help me soon and send to my email address: ngtthong@yahoo.com

Thank in advance,

Best wishes,
Pine.


kam k

Posts: 2
Nickname: kamk
Registered: May, 2005

Re: Database design Posted: May 11, 2005 3:43 AM
Reply to this message Reply
I think you can. It might be a very complex relation you are trying to build. Can you please mail the relations? If I see what you are doing it might help understand better.

Franco Martinig

Posts: 5631
Nickname: martinig
Registered: Apr, 2003

Re: Database design Posted: Jun 1, 2005 5:00 AM
Reply to this message Reply
If the many-to-many relationship between A and B has some fixed attributes and some time-related attributes, you could imagine that you could put in entity C the fixed attributes and create an entity D containing the time-related values, the identifier of D being the relationshipe with entity C and from/to dates for instance.

Flat View: This topic has 2 replies on 1 page
Topic: MVC - Model View Controller Previous Topic   Next Topic Topic: Designing address table

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use