B
Ben
Hi group-
I'm seeking input on a design question. I have a plan of
attack, but before implementing it, I want to make sure
there are no gotchas I haven't thought of, or bad ideas I
didn't notice.
I have a situation where I can have a number of different
types of documents tied to a case (not literal documents,
but logical groups of information). They all have some of
the same information, but each type has special
information all its own. The old design had one big table
with fields for every type (like 130/140 fields) - this
resulted in a lot of null fields and many other
headaches, and just seems like poor relational design.
My thought is to have a table that relates a case to a
document called tblDocuments, this has an identity field,
DocumentID, the case ID, fields that are common to all
documents, and a document type field. Then a table for
each type of document with the specialized fields. These
tables have a DocumentID field that matches up to
tblDocuments.DocumentID (I would call this a 1 to <1
relationship I guess). tblDocuments.DocumentType tells
(through a lookup table) what DocumentType table to look
at for the specialized information.
I realize that this probably would cause a coing mess,
except for the fact that each case can only have *one*
type of document asscociated with it (though it can have
multiple incidences of that type).
Thanks in advance, any and all input is much appreciated.
Ben
I'm seeking input on a design question. I have a plan of
attack, but before implementing it, I want to make sure
there are no gotchas I haven't thought of, or bad ideas I
didn't notice.
I have a situation where I can have a number of different
types of documents tied to a case (not literal documents,
but logical groups of information). They all have some of
the same information, but each type has special
information all its own. The old design had one big table
with fields for every type (like 130/140 fields) - this
resulted in a lot of null fields and many other
headaches, and just seems like poor relational design.
My thought is to have a table that relates a case to a
document called tblDocuments, this has an identity field,
DocumentID, the case ID, fields that are common to all
documents, and a document type field. Then a table for
each type of document with the specialized fields. These
tables have a DocumentID field that matches up to
tblDocuments.DocumentID (I would call this a 1 to <1
relationship I guess). tblDocuments.DocumentType tells
(through a lookup table) what DocumentType table to look
at for the specialized information.
I realize that this probably would cause a coing mess,
except for the fact that each case can only have *one*
type of document asscociated with it (though it can have
multiple incidences of that type).
Thanks in advance, any and all input is much appreciated.
Ben