A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Player availability list



 
 
Thread Tools Display Modes
  #1  
Old March 4th, 2010, 12:44 AM posted to microsoft.public.access.tablesdbdesign
GeoH
external usenet poster
 
Posts: 4
Default Player availability list

I am trying to record players availability for team matches throughout a
season. For example I have say a possible total of 50 players and there are
say 40 matches throughout the season. So far about 30 players have advised me
for which of the 40 matches they are available. I wish to record this
availability in Access and then to be able to advise the match manager of the
various games which players are available for the match for which he is
responsible.
I have so far created one table of matches - recording date of fixture,
opposition, venue, match manager and a second table of players. My problem is
how to record which matches the player is available for and then to be able
to extract list of players available for a particular match. Any
help/suggestions would be much appreciated.
  #2  
Old March 4th, 2010, 01:15 AM posted to microsoft.public.access.tablesdbdesign
PieterLinden via AccessMonster.com
external usenet poster
 
Posts: 307
Default Player availability list

GeoH wrote:
I am trying to record players availability for team matches throughout a
season. For example I have say a possible total of 50 players and there are
say 40 matches throughout the season. So far about 30 players have advised me
for which of the 40 matches they are available. I wish to record this
availability in Access and then to be able to advise the match manager of the
various games which players are available for the match for which he is
responsible.
I have so far created one table of matches - recording date of fixture,
opposition, venue, match manager and a second table of players. My problem is
how to record which matches the player is available for and then to be able
to extract list of players available for a particular match. Any
help/suggestions would be much appreciated.


Sounds like you're missing a join table...
You have tables for Player and Match, but nothing for Availability.

Availability(
PlayerID,
MatchID,
Available (Yes/No) ... or 1/0 and allow nulls... some people don't like
Yes/No fields.
)

Then if you want to generate a list of all players and all matches, just
create a deliberate cartesian product.

SELECT Players.PlayerID, Matches.MatchID
FROM Players, Matches

then turn it into an append query and append the records to the Availability
table.

--
Message posted via http://www.accessmonster.com

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:29 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.