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 > Database Server Software > MySQL > Feedback on design

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-31-11, 20:51
rados rados is offline
Registered User
 
Join Date: Jul 2011
Posts: 1
Feedback on design

Hi,

I am in the process of creating a sporting schedule schema.
Here is what I have so far -

schedule (schedId(pk), hometeamid(fk), awayteamid(fk), date, start, end, location, ....)
teams (teamid(pk), teamname, leagueid(fk), ....)
league (leagueid(pk), sportid(fk), ....)
sports (sportsid(pk), name, ....)

Any thoughts on this design?

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 08-01-11, 03:33
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
what does the assignment call for?

can you explain your design choices (to yourself), and justify why you came to this design?

ultimately its your design, and if it matches the design brief you have then its plenty good enough. without knowing the purpose / business requirement then its very hard t knwo if this design is good enough or not.

ferisntance
most sports have a season, or annual copmpetition
some have additional events during that season. eg football in Europe has national leagues and national cup competitons (England has 4 professional leagues, god knows how many amateur / semi professional leagues. all teams can elect to play in a league structure, all teams can enter the FA cup, all professional league teams can also enter the league cup. teams in the top tier of the professional league also play in pan european competitions.
hence thats why, without knowing what this model is meant to represent I doubt anybody could give you a yea or nay
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
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