J
Joy
Hi all -
I am modifying a program for the firefighters school.
In the original program, the home fire department was typed in by the
secretary.
This led to the usual different spellings for the same fire dept. and also
was time consuming. It is easier and more accurate to use a dropdown box.
The fire department is used in 3 different ways:
1. There is a home fire department for each student. It is found in the
STUDENT table.
2. Each student may be assigned to more than one fire dept. Let's say his
home department is Fire Dept #4 but he also fights for Depts #5, 6, 7
We need to know this, so if we print the members of Dept. 7 we know which
courses have been taken by that department.
These departments are found in the STUDENT/DEPARTMENT table.
3. There is a fire department which pays for his course - we need to show
this department on his graduation certificate. For example, let's say Fire
Dept. #5 paid for members of Fire Dept # 4 to take the course. When the
student registers for a course, he gives the name of the department that is
paying for the course.
The department certificate name is found in the STUDENT/COURSE table.
It is a good idea to create one DEPARTMENT table, then wherever it is used,
it is used as a drop down box.
Problem is student/course table is connected to student table is connected
to student/department table.
What I am thinking, is to have duplicate department tables, so they can be
connected to all the other tables, and ensure referential integrity.
Is this a good way to go? The department table doesn't change much, but if
you need to add a new dept. you have to add it to all 3 dept. tables, so
that the name will appear in every dropdown box. So this is an overhead,
and a source trouble, if someone forgets to do it.
Are there any other alternatives beside duplicating the department table
that would work? And what if I don't ensure referential integrity?
Thanks!
Joy
I am modifying a program for the firefighters school.
In the original program, the home fire department was typed in by the
secretary.
This led to the usual different spellings for the same fire dept. and also
was time consuming. It is easier and more accurate to use a dropdown box.
The fire department is used in 3 different ways:
1. There is a home fire department for each student. It is found in the
STUDENT table.
2. Each student may be assigned to more than one fire dept. Let's say his
home department is Fire Dept #4 but he also fights for Depts #5, 6, 7
We need to know this, so if we print the members of Dept. 7 we know which
courses have been taken by that department.
These departments are found in the STUDENT/DEPARTMENT table.
3. There is a fire department which pays for his course - we need to show
this department on his graduation certificate. For example, let's say Fire
Dept. #5 paid for members of Fire Dept # 4 to take the course. When the
student registers for a course, he gives the name of the department that is
paying for the course.
The department certificate name is found in the STUDENT/COURSE table.
It is a good idea to create one DEPARTMENT table, then wherever it is used,
it is used as a drop down box.
Problem is student/course table is connected to student table is connected
to student/department table.
What I am thinking, is to have duplicate department tables, so they can be
connected to all the other tables, and ensure referential integrity.
Is this a good way to go? The department table doesn't change much, but if
you need to add a new dept. you have to add it to all 3 dept. tables, so
that the name will appear in every dropdown box. So this is an overhead,
and a source trouble, if someone forgets to do it.
Are there any other alternatives beside duplicating the department table
that would work? And what if I don't ensure referential integrity?
Thanks!
Joy