C
Christopher Glaeser
I would like to add multiple notes to workorders, where a Note is defined as
....
tblNotes
NoteID: Primary Key
ForeignID: Foreign Key
CreationDate: Date
EnteredBy: Person
Note: Memo
Using this structure, I could add any number of Notes to a Workorder using a
many-to-one relation. However, I have several unique types of workorders
maintained in separate tables (e.g. tblInspectonWorkorder,
tblRepairWorkorder, tblDemolitionWorkorder). Consider these two design
approaches:
1. Create a unique Notes table for each type of Workorder table.
2. Add another field to tblNotes to specify which Workorder table the Note
is attached.
Which is the best design approach? I'm guessing the latter is preferred,
but I wan't to avoid any unforseen pitfalls.
Best,
Christopher
....
tblNotes
NoteID: Primary Key
ForeignID: Foreign Key
CreationDate: Date
EnteredBy: Person
Note: Memo
Using this structure, I could add any number of Notes to a Workorder using a
many-to-one relation. However, I have several unique types of workorders
maintained in separate tables (e.g. tblInspectonWorkorder,
tblRepairWorkorder, tblDemolitionWorkorder). Consider these two design
approaches:
1. Create a unique Notes table for each type of Workorder table.
2. Add another field to tblNotes to specify which Workorder table the Note
is attached.
Which is the best design approach? I'm guessing the latter is preferred,
but I wan't to avoid any unforseen pitfalls.
Best,
Christopher