A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Help in Creating Relationships in a table



 
 
Thread Tools Display Modes
  #1  
Old April 5th, 2010, 05:02 PM posted to microsoft.public.access.gettingstarted
forest8
external usenet poster
 
Posts: 196
Default Help in Creating Relationships in a table

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

  #2  
Old April 5th, 2010, 08:06 PM posted to microsoft.public.access.gettingstarted
Dorian
external usenet poster
 
Posts: 542
Default Help in Creating Relationships in a table

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

Not if an issue can have more than one action.
Also you have issues and actions both linked to category, what is the
purpose of category? Might you not have different subsets of categories for
issues and actions?
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".


"forest8" wrote:

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

  #3  
Old April 5th, 2010, 11:16 PM posted to microsoft.public.access.gettingstarted
forest8
external usenet poster
 
Posts: 196
Default Help in Creating Relationships in a table

Hi there

All the issues and actions are tied to a category.

An Issue can have more than 1 action. For instance, if a student has no role
model in his family, then a possible action is to develop a positive role
model, [Category: Family, Issue: Lack of Role Model; Action: Develop Adult
role models]

Several issues may have the same action. For instance, a youth has no adult
role models and has a poor relationship with his family, then the action is
to develop a positive role model. [Category: Family, Family. Issue: Lack of
Role Model, Action: Develop adult role model]

Does this make sense?

Thanks





"Dorian" wrote:

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

Not if an issue can have more than one action.
Also you have issues and actions both linked to category, what is the
purpose of category? Might you not have different subsets of categories for
issues and actions?
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".


"forest8" wrote:

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

  #4  
Old April 6th, 2010, 12:28 AM posted to microsoft.public.access.gettingstarted
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Help in Creating Relationships in a table

While I'm sure that most (?all) students have a "homeroom teacher" at some
point in time, it is true that they have the SAME homeroom teacher for all
time? Barring court or marital action, most individuals have/keep the same
first and last name throughout their lives.

I suspect your [HomeroomTeacher] field (and possible some of your {other
info relating to the student} actually belongs in a different table).

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.


"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



  #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



  #6  
Old April 6th, 2010, 01:02 AM posted to microsoft.public.access.gettingstarted
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Help in Creating Relationships in a table

.... that should have been "IS IT true ..."

Jeff

"Jeff Boyce" wrote in message
...
While I'm sure that most (?all) students have a "homeroom teacher" at some
point in time, it is true that they have the SAME homeroom teacher for all
time? Barring court or marital action, most individuals have/keep the
same first and last name throughout their lives.

I suspect your [HomeroomTeacher] field (and possible some of your {other
info relating to the student} actually belongs in a different table).

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.


"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





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:00 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.