Results 1 to 8 of 8
  1. #1
    rattler418 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Posts
    3

    Team Db - Multiple Scores Per Athlete Over Multiple Meets...

    Ladies and Gentlemen of the UtterAccess[edit], ahem, ACCESS FORUMS...[edit] Community,

    I have been researching a bit of a roadblock I am having for some time now, and I must admit that I am at a complete loss on this. Please help me.

    I am building a DB for a local gymnastics team. I am capable of getting everything worked out except for this one concept that is integral to the entire purpose. I have the design laid out, the flow worked out, and all of the tables and queries (thus far) set, I just need to figure out how to build a certain relationship, based on the following information.

    One gymnast accumulates 4 scores in one meet. She competes in multiple meets, over which her scores from each will need to be averaged, therefore stored (I can do the calculations once I get the data playing nicely).

    Each meet involves multiple gymnasts, each with her own set of the four scores, across which a team average must be calculated.

    The scores are for the following events: Vault, Beam, Uneven Bars, Floor Exercises

    I have attached a screenshot of my current relationship view. Please advise on any required additional tables and how they would relate to each other and to my existing tables.

    Thank you very much for your attention in this.Click image for larger version. 

Name:	CCG Relationships.jpg 
Views:	10 
Size:	67.1 KB 
ID:	10174

    -rattler418

  2. #2
    Rod is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Jun 2011
    Location
    Metro Manila, Philippines
    Posts
    679
    Thank you for your most eloquent post and greeting. Unfortunately we do not comprise the UtterAccess Community but are instead the humble AccessForums.Net rabble. We are willing to forward your request on to our colleagues at UtterAccess but you may have already done this.

    Sorry, couldn't resist it.

    You need to add a table for event: four records for vault, beam, uneven bars (been in a lot of those after a few beers) and floor execises. Then you need a join/cross reference table between this new event table and your existing tblMeetJoin.

    PS. What are first and last names doing on your tblMeetJoin? Shouldn't be there; retrieve them from tblGymnasts2. Same for meet location state and city.

  3. #3
    rattler418 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Posts
    3
    Rod,

    First, please accept my apologies on the incorrect address. I did post this question on Utter Access first, then pasted it in here. I did so with the intent on getting as many opinions on my dilemma as I could, and simply neglected to readdress the audience appropriately. I hope I did not offend.

    Secondly, I would like to thank you for your reply. I will try it over the next couple of days and I will let you know my results. I sincerely appreciate your time and expertise.

    Regards,

    rattler418

  4. #4
    Rod is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Jun 2011
    Location
    Metro Manila, Philippines
    Posts
    679
    Nah! No offence taken. Forgive me for being facetious; it was meant in fun. Get back to me/us anytime. You could normalise your db design further.

  5. #5
    rattler418 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Posts
    3
    If I am to use a Join table between tblMeetJoin and tblEvents, which field in tblMeetJoin should I declare as the Primary Key? I wasn't sure that join tables even used PKs.

    Steven

  6. #6
    Rod is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Jun 2011
    Location
    Metro Manila, Philippines
    Posts
    679
    Click image for larger version. 

Name:	1.jpg 
Views:	10 
Size:	16.6 KB 
ID:	10183

    First, to clear a possible misconception, none of your tables are true join/cross reference tables solving a many-to-many relationship. As they attract additional data apart from the foreign keys they are in fact normal data tables. It's a pernickety point but referring to them as joins may 'colour' your future thinking.

    Please note I have introduced a new primary key on tblMeetJoin. You could of course use a compound key of CCGMeetID + GymnastID but I, and many others, find compound keys awkward, especially later into the development. Also I have forgotten to specify ScoreID as the primary key; this is a mistake.

    If it's not too late to re-engineer your project, I recommend that you remove the duplicated data from your tables.

    Don't hestitate to repost if you have furher concerns.

  7. #7
    Rod is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Jun 2011
    Location
    Metro Manila, Philippines
    Posts
    679
    Just in case you can change nothing, your db relationships will look like this:

    Click image for larger version. 

Name:	1.jpg 
Views:	11 
Size:	15.6 KB 
ID:	10184

  8. #8
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    PMFJI,

    If you still can make changes, I would also reccommend:

    ** Rename "ID" to "GymnastID". "ID" is nor very descriptive,especially if there could be another table with a PK of "ID".

    ** You shouldn't use special characters or spaces in object names ("#" is the date delimiter). Only use letters numbers and the underscore.

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

Similar Threads

  1. Replies: 1
    Last Post: 08-25-2012, 06:11 PM
  2. Export multiple query's to multiple sheet excel
    By vaikz in forum Import/Export Data
    Replies: 4
    Last Post: 08-15-2012, 08:53 AM
  3. Replies: 1
    Last Post: 01-10-2012, 10:12 PM
  4. Replies: 23
    Last Post: 12-06-2011, 09:18 AM
  5. Replies: 4
    Last Post: 06-14-2011, 07:19 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