View Single Post
  #5  
Old April 6th, 2010, 01:00 AM posted to microsoft.public.access.gettingstarted
Steve[_77_]
external usenet poster
 
Posts: 1,017
Default Help in Creating Relationships in a table

Does this look right to anyone?

No!

You need a teachers table:
TblTeacher
TeacherID
other teacher fields

You need a classroom table:
TblClassroom
ClassroomID
Classroom

You need a homeroom teacher table. You will need to record this every school
year.
TblHomeroomTeacher
HomeroomTeacherID
ClassroomID
TeacherID
SchoolYear

You can now record a student's homeroom teacher which identifies the school
year and identifies the student's homeroom. You will need to record this
every school year.

TblStudent
StudentsID
LastName
FirstName
(ohter info relating to the student)

TblStudentHomeroom
StudentHomeroomID
StudentID
HomeroomTeacherID

Regarding issues and actions ........
First, your category table looks good:
TblCategory
CategoryID PK
Category (e.g. School, Community, Individual, Peers, Family)

Your Issue table looks good:
TblIssue
IssueID PK
CategoryID FK
Issue (text, e.g. lack of role models)

Your action table looks good:
TblAction
ActionsID PK
CategoryID FK
Action (text, eg. New Adult Role Models)

Now you need a table that identifies the appropriate actions for each issue:
TblIssueAction
IssueActionID
IssueID
ActionID

Now for Cases. I am going to assume you want to create a case history for a
student each school year. This means at the first time there is an issue
with a student in a school year, he is assigned a case number and keeps that
same case number throughout the school year. In the next school year, if
there is an issue with a student, he is assigned a new case number.

TblCase
CaseID
StudentHomeroomID (identifies the student, his home room and the school
year)
CaseNumber

Now you need a table to record each time there is an issue in a case:
TblCaseIssue
CaseIssueID
CaseID
IssueID
IssueDate

Finally you need a table to record what actions were taken for each issue:
TblCaseIssueAction
CaseIssueActionID
CaseIssueID
ActionID
ActionDate


Steve



"forest8" wrote in message
...
Hi

This is a follow to a previous question concerning relationships in a
table.

These are my tables I have in my database.

Students
StudentsID
LastName
FirstName
HomeroomTeacher
(ohter info relating to the student)

Cases
CaseNo_ID PK
StudentID FK

Categories
CategoryID PK
Category (e.g. School, Community, Individual, Peers, Family)

Issues
IssuesID PK
Issues (text, e.g. lack of role models)
CategoryID FK

StudentIssues
CaseNoID link to Cases Table
IssuesID Link to issues Table

Actions
ActionsID PK
Actions (text, eg. New Adult Role Models)
CategoryID FK

StudentActions
CaseNoID link to Cases Table
ActionsID link to Actions Table

Does this look right to anyone?

Is it possible to merge the Actions and Issues tables together or is it
best
to leave them separate?

Thank you in advance for your help