Hi all
I have a database that includes the following tables
Students (firstname, lastname, ID, med_check) . Med_check is a date when each student last had a medical check (which is valid for 1 year). It may even be blank
Sport_groups (ID, name, students.ID). Each sport group can contain more than one student and each student may be part of 2 or more groups.
Different sport groups take part in contests on various dates.
I eventually want to identify the students that do not have a recent (less than a year) medical check by entering their sport_groups name and the date of the contest.
The sport_groups name and the date of the contest will be entered each time by the user via a form.
Does it make sense to use those 2 tables?
Given that it is a many to many relationship, should I be using 3 tables instead?
Many thanks
PS
If anyone could give me a hint on the code I'll need to use for the query, that'd be extremely useful!
I have a database that includes the following tables
Students (firstname, lastname, ID, med_check) . Med_check is a date when each student last had a medical check (which is valid for 1 year). It may even be blank
Sport_groups (ID, name, students.ID). Each sport group can contain more than one student and each student may be part of 2 or more groups.
Different sport groups take part in contests on various dates.
I eventually want to identify the students that do not have a recent (less than a year) medical check by entering their sport_groups name and the date of the contest.
The sport_groups name and the date of the contest will be entered each time by the user via a form.
Does it make sense to use those 2 tables?
Given that it is a many to many relationship, should I be using 3 tables instead?
Many thanks
PS
If anyone could give me a hint on the code I'll need to use for the query, that'd be extremely useful!