I have a member website where each user can place several bets on football games every day. The idea is to sum the points of each day, calculate them and display them in a graph (in using Google chart API). All good so far. Every day new points will be calculated for each user and displayed on the graph along with the points from the past days. So that the user could see his past results in a curve or graph. My only guess is to make a Table with ID - Username - Points - Round. I don't want my database to suffer due to my poorly constructed tables and query's.
So my question is: How should I set this up in my database?
This is my table right now:
TABLE -> MEMBERS
ID
Firstname
Lastname
Username
Password
(My fictional table).
TABLE -> MEMBERS_POINTS
ID
Username
Points
Round
So I set up a query that fetches the users points from a required round. Is this good way to go? Will this slow down my database? Every user will play 30 rounds and with several users the table will probably contain thousands of row.
Find a post here but i didn't have any answers and i have some different ideas.
EDIT
It´s a member-site where every user that register have to place all of the 60 bets at once, the 60 bets are divided out over 30 days (which I call rounds). Each round consists of 2 bets, maximum 6 points. The total score will be displayed with the leader in total, along with the winner of every day. Each user should be able to see his or her past scores on in form of a graph.
1 user = 60 bets = 30 days(rounds. Total points and every day point kept in a record.