(Msg. 9) Posted: Thu Jul 31, 2008 8:32 pm
Post subject: Re: Can a field store a date and/or any other data type? [Login to view extended thread Info.] Archived from groups: microsoft>public>access>formscoding, others (more info?)
I can see the benefit of having a separate table for student activities
tblStudentActivity
StuActID - Autonumber PK
StudentID - Long Integer - Foreign Key to tblStudent
ActivityID - Long Integer - Foreign Key to tblActivity
ActivityStartDate - Date
ActivityCompleteDate - Date
but i'm struggling to see the benefit of a separate table for activity
description (assuming it's as unique as the activity)
tblActivity
ActivityID - Autonumber PK
ActivityDescription - Text
wouldn't it be easier to put both in same table:
tblActivity
StuActID - Autonumber PK
StudentID - Long Integer - Foreign Key to tblStudent
ActivityDescription - Text
ActivityStartDate - Date
ActivityCompleteDate - Date
(Msg. 10) Posted: Thu Jul 31, 2008 8:32 pm
Post subject: Re: Can a field store a date and/or any other data type? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
It depends how unique the activities are. "Go to study hall" may be a common
activity, but "read page 997 of War and Peace" may be a rare activity. If
you do not have a finite number of unique activites, then the combined table
makes sense. The other approach to look at it is if the two tables end up
being an almost one to one relationship then a single table makes sense. If
there is a many to one relationship on activity then the seperate tables
make sense.
(Msg. 11) Posted: Thu Jul 31, 2008 8:32 pm
Post subject: Re: Can a field store a date and/or any other data type? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
John's hit it right on the head.
First, you tell us what the relationship is between Students and Activities.
All times are: Eastern Time (US & Canada) (change) Goto page Previous1, 2
Page 2 of 2
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum