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 > Help with e/r model.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-10-08, 09:05
makko187 makko187 is offline
Registered User
 
Join Date: Nov 2008
Posts: 16
Help with e/r model.

Hi everybody..

I'm currently working on a college assignment to design a database to store data for a triathlon.

The first stage is to use the e/r model to discuss possibilities for entities and and relationships..

What exactly do I need to put in this section? I've come up with some thaughts on what data (times,teams etc..) I will be storing ad also a simple relationship table..(attached)

In the brief i've been told to give examples of Unary, Ternary and Binary relationships.. I'm not really sure what these are..but i'll make an attempt. Could you help me identify some please..?

Also I would appreciate some pointers on how I could improve this sketch as my ability to identify relationships isn't great..

Quick Overview of my business rules..
  • Triathlon consists of Swim, Cycle, Run
  • Time is stored for each of the above sections
  • Two transition times:
  • from water and onto bike
  • get off bike and begin run
  • each participant(team) is issued with overall time..
  • two types triathlon:
  • Sprint tri
  • try-a-try
  • Regardless of type, swim goes of in waves of 30
  • delayed by 10-15 mins between each wave

I greatly appreciate any help as Im pretty lost with the design side of things, sql is pretty good thank god!

makko


EDIT: Startgrid tables is supposed to be related to team table, not times table, oops!
Attached Thumbnails
Help with e/r model.-first-e-r-drawing.jpg  
Reply With Quote
  #2 (permalink)  
Old 12-10-08, 09:24
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
i don't understand bubbles

were you told what modelling/diagramming style or convention to use for this assignment?

i'm only comfortable with the style where the entity is in a box, and the relationships are lines between boxes
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 12-10-08, 09:32
makko187 makko187 is offline
Registered User
 
Join Date: Nov 2008
Posts: 16
Thanks for the quick response..

We haven't been told about any conventions..sorry if its not drawn properly, it was only a quick mockup on smartdraw..My first ever drawing with it.
Reply With Quote
  #4 (permalink)  
Old 12-10-08, 09:57
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
Rudy, that's because you work primarily with MySQL.
SQL Server uses either bubbles or rectangles, though the bubbles are leftover from the old Sybase octagon standards.
Interestingly, Oracle 12c will be extended to accept any trapezoid, acute or obtuse, but will require a series of emoticons as connectors to denote the various relationships.
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
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