|
Posted by Mark on 10/01/40 11:25
> You are right, this table layout would not work with identity. However, I
> figure your table layout may not be optimal because you really have a n-m
> relationship between incidents and pupils. And as far as I can see
> there's no place to store information where there is just one piece per
> incident (for example date and time). With all that I know ATM I would
> have it as follows:
>
> table incidents with date, time, location whatever and incidentid
> (identity)
> table pupils with pupilid (identity), name, day of birth - whatever
> table pupils_in_incidend with incidentid, pupilid (both foreign keys)
>
> This seems the most normalized approach here.
>
> Kind regards
>
> robert
OF COURSE! I should have seen that it would be silly to duplicate all of the
incident information for every pupil involved in a given incident.
Thank you immensely for your help!
Mark.
Navigation:
[Reply to this message]
|