I am an Access novice who is stuck and was hoping one of you experts can help.
I am building a database to manage a bowling league. I am trying to create a query that determines the winning team. Here are the tables involved and related fields in brackets:
TEAM (TeamID, Name)
PLAYER (PlayerID, TeamID)
GAME (GameID, PlayerID, Game, Score)
TEAM has a 1-to-many relationship to PLAYER via TeamID and PLAYER has a 1-to-many relationship to GAME via PlayerID.
What I want to do is to create a query which determines the total score for "each" team. In addition, a column in the query should return a message "Win" or "Loss", depending on Team who has the highest total score.
Example: Team A's total score 108, Team B's total score 210, Team C's total score 150. Team B would be a "Win" while Team A and C will be a "Loss".
I feel like I'm so close to getting this to work. Help if you can. Any tips will greatly be appreciated.
Thanks,
Albert
I am building a database to manage a bowling league. I am trying to create a query that determines the winning team. Here are the tables involved and related fields in brackets:
TEAM (TeamID, Name)
PLAYER (PlayerID, TeamID)
GAME (GameID, PlayerID, Game, Score)
TEAM has a 1-to-many relationship to PLAYER via TeamID and PLAYER has a 1-to-many relationship to GAME via PlayerID.
What I want to do is to create a query which determines the total score for "each" team. In addition, a column in the query should return a message "Win" or "Loss", depending on Team who has the highest total score.
Example: Team A's total score 108, Team B's total score 210, Team C's total score 150. Team B would be a "Win" while Team A and C will be a "Loss".
I feel like I'm so close to getting this to work. Help if you can. Any tips will greatly be appreciated.
Thanks,
Albert