tigertim71
Registered User.
- Local time
- Today, 19:43
- Joined
- Apr 18, 2008
- Messages
- 12
Could someone please explain this to me. I have extracted the data from an internet site but can't quite understand a few things relating to table relationships, design and content:
Students Table has following structure (1NF):
studentID
name
dateofbirth
advisor
advisor'stelephone
student
courseID1
coursedescription1
courseinstructor1
courseID2
coursedescription2
courseinstructor2
In 2NF this is split into:
Student table:
studentID
name
dateofbirth
advisor
advisor'stelephone
Student courses table:
studentID
courseID
Courses table:
courseID
coursedescription
courseinstructor
In 3NF it's:
Student table:
studentID
name
dateofbirth
advisorID
Student courses table:
studentID
courseID
Courses table:
courseID
coursedescription
courseinstructor
Advisor table:
advisorID
advisorname
advisortelephone
I just have a few questions relating to this...
1. Why is there a student courses table (is this known as a 'junction' table?) and if so what is it's purpose? What is the relationship between the student table and the student courses table, as well as the courses table to the student courses table (one-to-many??).
2. In the student courses table how are the fields populated in Access. Do all studentID's and courseID's need to be typed in manually (or using a lookup table referring to the original tables) or can this just be left blank?
3. I noticed that there is an Advisor table.advisorID and Student table.advisorID. Is the relationship one-to-many?
4. Would it be possible to skip the Student courses table altogether and just put a courseID as a foreign key in the Student table. If not, why not? Also I would like to know why the advisorID table does not need a similar table such as the Student courses table?
Many Thanks for any help,
Tim
Students Table has following structure (1NF):
studentID
name
dateofbirth
advisor
advisor'stelephone
student
courseID1
coursedescription1
courseinstructor1
courseID2
coursedescription2
courseinstructor2
In 2NF this is split into:
Student table:
studentID
name
dateofbirth
advisor
advisor'stelephone
Student courses table:
studentID
courseID
Courses table:
courseID
coursedescription
courseinstructor
In 3NF it's:
Student table:
studentID
name
dateofbirth
advisorID
Student courses table:
studentID
courseID
Courses table:
courseID
coursedescription
courseinstructor
Advisor table:
advisorID
advisorname
advisortelephone
I just have a few questions relating to this...
1. Why is there a student courses table (is this known as a 'junction' table?) and if so what is it's purpose? What is the relationship between the student table and the student courses table, as well as the courses table to the student courses table (one-to-many??).
2. In the student courses table how are the fields populated in Access. Do all studentID's and courseID's need to be typed in manually (or using a lookup table referring to the original tables) or can this just be left blank?
3. I noticed that there is an Advisor table.advisorID and Student table.advisorID. Is the relationship one-to-many?
4. Would it be possible to skip the Student courses table altogether and just put a courseID as a foreign key in the Student table. If not, why not? Also I would like to know why the advisorID table does not need a similar table such as the Student courses table?
Many Thanks for any help,
Tim