I see and then i would write a query to look for user id and sport id and then total up all score values found in each entry to find the total score in that given sport for that player
GE
Main Topics
Browse All TopicsHello i don't have a code question as much as it is a question about the method to me use to store and recall data.
1. I have a table that stores my users information.
2. I have a table that store the different sports they play(new sports will be added dynamically as time goes by).
how would i keep track of the scores each user makes in each sports(considering a new sports can me added at any time).
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
greeneel:
You've got it!! With the proper relationship established, you can write querys to identify how many sports each user plays, or how many players each sport has, average scores for each sport, etc.
You may also want to add trhings to the new table such as the date of the game / event, whether it was a home or away game for the player, etc.
Good Luck,
AielloJ
Business Accounts
Answer for Membership
by: AielloJPosted on 2009-08-18 at 15:07:16ID: 25128134
greeneel:
Your table of users relates to your table of sports they play. You need one more table that tracks games the user played in. It should contain the user id, the sport id, and the score in the game played.
Sincerely,
AielloJ