If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Mapping from ER to relational

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-18-05, 06:49
Luc4 Luc4 is offline
Registered User
 
Join Date: Dec 2005
Posts: 7
Mapping from ER to relational

Hi. I'm finding some difficulties in mapping an ER scheme into a relational scheme. The structure I'm trying to map is a relationship of third grade. I have three entities and the cardinal constraints are (0,1), (1,1) and (0,N), where the first number indicates the minimum number of istances of the relation and the second one the maximum. I mapped this situation adding a fourth relation which maps the relationship, which has three columns, which are the primary keys of the relations I'm trying to map. The problem is: which will be the primary key of the new relation? Which one of those three columns?
Thanks.
Reply With Quote
  #2 (permalink)  
Old 12-19-05, 06:00
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Since you have a 1:1 relationship in there then the PK of the relation at one end can serve as the PK of the relation representing the relationship.
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On