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 > Entities and relationships

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-15-09, 07:44
ceola ceola is offline
Registered User
 
Join Date: Nov 2009
Posts: 1
Question Entities and relationships

HI I am currently designing a website which contains games for children. I need to design a database to store the results of the games and graphics for the games. I am a bit confused about my entities. I have a 1 to many relationship between user and game and i am not sure where the results entity will fit in. Is it derived from the relationship between user and game or is it directly related to both or either of these entities?Any suggestions would be greatly appreciated. Thanks.
Reply With Quote
  #2 (permalink)  
Old 11-15-09, 09:11
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
I think that you need a new entity, which I'd call playInstance. User and game would both be non-identifying foreign keys in playInstance. Score would be an attribute of playInstance.

-PatP
__________________
In theory, theory and practice are identical. In practice, theory and practice are unrelated.
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