|
-
Jun 26th, 2012, 02:56 AM
#1
Thread Starter
PowerPoster
Sport Teams Database with age restrictions
Hi Guys,
I have a table called Sport (ID, Description, Active)
Example data:
Code:
1 Soccer 1
2 Cricket 1
Then I have a Teams table(ID, Description, Active)
Code:
1 Under 14A 1
2 Under 15A 1
3 Under 15B 1
Since soccer and cricket can have an Under 14A team I have a table called Sport_Teams that links a team to a sport
ID, SportID, TeamID
Those are the basic tables. I need to add an age restriction to a team. I have a people table(Peopleid, Name, Surname, DateOfBirth)
When I select a team from a dropdown, I need to then only display the people who's age group falls under the age restriction for the selected team. What is the best way to do this. for example if I select Soccer, then the Under 14A team, I then need to only list people who are under the age of 14.
Please advise me. Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|