Results 1 to 2 of 2
  1. #1
    Andyjones is offline Advanced Beginner
    Windows Vista Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    76

    Will this design work

    League and Results Database



    Home Team & Away Team
    Home Team Players & Away Team Players
    Home Player Score Away Player Score
    Fixture
    Division

    Tables would look something like this.

    Teams
    Timid
    Team Name
    Divide


    Division ID
    Division

    PlayersID
    Player Name
    TeamID

    FixureID
    Date
    Fixture Type
    HomeTeamID
    Away Team ID
    Player ID
    Score

    How would the relationship be set up and would I need duplicate table ofr fixtures and players and teams so when entering data or results the main form would need to look like this.

    Div Date FixtureType

    HometeamID VS Away TeamID

    Playername Score Playername Score

  2. #2
    Dal Jeanis is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742

    Some feedback

    I assume that "fixture" is British terminology for a scheduled game. I don't know what fixture types there might be, but you probably want a table for the types.

    Also, since more than one player per team will have a chance to score in just about any type of sport, I'd break up the player scores into a separate table from the fixture table.

    There are other possible changes that you might make, depending on how you plan to use the database, but for now I just added some optional notes fields anywhere I think a typical sports statistics enthusiast would want them. As in, everywhere.

    Code:
    tblTeams
      TeamID
      TeamName
      DivID
      Notes 
    
    tblDivisions
      DivID 
      DivName
      Notes
    
    tblPlayers
      PlayerID
      PlayerName
      TeamID
      Notes
    
    tblFixtures
      FixtureID
      FixDate
      FixtureType
      HomeTeamID
      AwayTeamID
      Notes
    
    tblFixTypes
      FixTypeID
      FixTypeName
      Notes
    
    tblFixScores
      FixtureID
      PlayerID
      PlayerScore
      Notes
    If players are traded around in your leagues, and if you plan to track more than one season, then you might want to break out the player and team info something like this -
    Code:
    tblPlayers
      PlayerID
      PlayerName
      Notes
    
    tblPlayerTeam
      PlayerID
      TeamID
      PTStartDate
      PTEndDate
      Notes
    The same caveat goes if the teams change leagues very often.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Table Design -- want to avoid a design that creates blank fields
    By snowboarder234 in forum Database Design
    Replies: 4
    Last Post: 10-08-2012, 10:13 AM
  2. Vehicle work order database design
    By bacanter01 in forum Database Design
    Replies: 4
    Last Post: 03-22-2012, 07:58 PM
  3. Parts/Work Orders Database Design
    By snewton in forum Database Design
    Replies: 5
    Last Post: 03-13-2012, 07:06 PM
  4. can't we just work together?
    By ldodge in forum Queries
    Replies: 4
    Last Post: 10-15-2011, 06:42 AM
  5. how does mdw work?
    By raffie77 in forum Security
    Replies: 2
    Last Post: 08-17-2011, 12:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums