Results 1 to 5 of 5
  1. #1
    redhoax is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    3

    Beginner: Design of Football (soccer) team Fantasy setup. Players, Teams, Matches -- Statistics!

    Hello there :-)



    I'm new to this forum, and very new to Access. I just read up on some of the related threads here (keyword: fantasy, league), and read the RDBMS Principles article by D.Ravey. So, I'm quite new to Access, and have no previous programming knowledge. Anyway;

    I have an Excel spreadsheet covering player info, team info, player statistics, etc. I now want to create an access database to replace that spreadsheet. So the scope of my project is a database that contains information on 1 team, its players and match results. This is what I've come up with so far:

    Scope: Players, fixtures and team information and statistics for 1 team

    Entities: Team, Player, Fixture (match), Position, Point Triggers..

    Now, PointTriggers would be the parameters Goal, Assist, Own goal, Penalty miss, Penalty save, Clean sheet, etc... standard Fantasy stuff. I need a table where I can store the score rewarded by each trigger. But this is where I'm kind of confused. Shouldn't the object "Goal" have its own table, with e.g. MatchID and PlayerID? And same for Assist? And so on, basically for all the so-called "PointTriggers".

    Relationships:
    Many-to-Many
    - a position has many players, a player can play in several positions
    - a player plays many matches, a match has many players
    - a match has 1 record, which has multiple teams, a team has multiple matches, OR: 1 match has 2 records, one for each team, with a field indicating H(ome) or A(way). (Read this suggestion in an other thread. Comment by June7 I think.)
    One-to-Many
    - a player can have goals, a goal can only have 1 player
    - a player can have many assists, an assist can only have 1 player
    etcetc...

    Does this make sense so far? Am I on the right track? I've entered very little data, but set up several relations. Want to get the "design" in place first. The key question for me now is: Should all the different point triggers have their own table? I tend to think so. This would be "normalization" of the database tables?

    Thanks

  2. #2
    accedeholdings is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Sep 2014
    Location
    Hackney, South Australia
    Posts
    17
    If I will make a fantasy football software, I would prefer one to many approach.

  3. #3
    redhoax is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    3
    My tables and relations so far:
    Click image for larger version. 

Name:	VidarDB_Rel.PNG 
Views:	39 
Size:	60.5 KB 
ID:	18402

    I believe most of it's OK, but the MatchesTbl is unfinished...can't quite get my head around it yet. If you spot anything weird, or have any questions, please fire away ;-)

    What I basically want to extract from this is a player score table, a league table, fixtures list and match reports. Maybe add something like comparing two players with respect to points, player form, etc., but haven't really decided. Maybe I should decide on that before I move on.

  4. #4
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    This model (example) may be helpful.

  5. #5
    redhoax is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    3
    Thanks, orange.

    I've removed the duplicate PositionTbl_1and the SideTbl, added AwayTeam to the MatchesTbl and removed the field Goals, and I added TeamID to PlayerTbl. I'm quite satisfied with the way it looks now. I'll start working on forms, queries, GUI etc.

    Cheers!

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

Similar Threads

  1. Replies: 26
    Last Post: 06-14-2013, 10:57 AM
  2. DB design advice (warning: beginner content!)
    By Rattykins in forum Access
    Replies: 1
    Last Post: 05-09-2012, 07:52 AM
  3. Replies: 5
    Last Post: 02-07-2012, 07:06 AM
  4. Replies: 5
    Last Post: 01-25-2012, 08:07 AM
  5. DB Design & Table Setup Help
    By Zanzibarjones in forum Database Design
    Replies: 58
    Last Post: 06-14-2011, 10:54 AM

Tags for this Thread

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