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 > Interesting design challenge

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-25-04, 10:31
lars68 lars68 is offline
Registered User
 
Join Date: Mar 2004
Posts: 1
Talking Interesting design challenge

Hello all...I am trying to design a database for a youth soccer league to allow score reporting to be automated throug a web form and have the data inserted into a MySQL DB using Java. There are a few challenges.

1) The scores are reported by each clubs representative. This means that team "123" will have a score reported by 2 seperate individuals every week. There is the possibility of 2 different scores being reported for one team.

2) There are 10+ weeks in the season. How do I track each week seperately? Would I make 10 tables? One for each week.

3) Each club has a different number of teams that they are reporting on. How do I handle this with the insert?

I am sure that there are other challenges that I haven't even thought of yet.

Any help will be much appreciated.

Thanx
Reply With Quote
  #2 (permalink)  
Old 03-25-04, 11:36
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Re: Interesting design challenge

Re (2): no, one table with a "week" column.
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
  #3 (permalink)  
Old 03-25-04, 14:32
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Having scored for AYSO for several years, this is a problem I understand pretty well!

There are always two teams in a match. You'll get two reports for each match, one report from each team with scores for both teams.

You'll probably want one table for team information, one for match information (showing which teams play each other when and where), one for match scores (match, team, score, and reporter), and probably one table for player information. You'll have to figure out how to match players to teams, especially if one play can play on more than one team!

I suspect that you'll need to report any discrepancies in match scores to the league scorekeeper for resolution. There isn't a way I know to do that in code.

-PatP
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