G
Guest
i am creating a league database for my club squash leagues. the leagues go
from premier 1-10, intermediate 1-10 and club-1-3. so far i have tables for
membership information, league type and level, and matches, all linked by
their primary keys to the secondary keys. The main idea of the database is to
update the league positions and matches at the end of the league month (the
leagues change every month). I have no idea how to do this-(do i need other
tables/what queries do i need?). the tables fields are as follows:
membership info: ID, name, address, phone, email, league id.
League: ID, title, level.
matches: ID, league id, member1 name, member 2 name, member 1 score, member
2 score.
the member table is linked to league by league id, and matches is linked to
league in the same way.
at the end of the month, players are ranked in their leagues by the amount
of games won (games are first to 3). they are ranked by the amount of 3's
then 2's then 1's. according to the rankings, the 1st player moves up 2
leagues, the second moves 1, the 3rd stays, the 4th goes down 1 and the 5th
goes down 2.
Please help!!!
from premier 1-10, intermediate 1-10 and club-1-3. so far i have tables for
membership information, league type and level, and matches, all linked by
their primary keys to the secondary keys. The main idea of the database is to
update the league positions and matches at the end of the league month (the
leagues change every month). I have no idea how to do this-(do i need other
tables/what queries do i need?). the tables fields are as follows:
membership info: ID, name, address, phone, email, league id.
League: ID, title, level.
matches: ID, league id, member1 name, member 2 name, member 1 score, member
2 score.
the member table is linked to league by league id, and matches is linked to
league in the same way.
at the end of the month, players are ranked in their leagues by the amount
of games won (games are first to 3). they are ranked by the amount of 3's
then 2's then 1's. according to the rankings, the 1st player moves up 2
leagues, the second moves 1, the 3rd stays, the 4th goes down 1 and the 5th
goes down 2.
Please help!!!