R
ragsman
Hi,
I am trying to set up simple trouble report type database that will be based
on documents with ID's like such:
0-SO-1-1, or 1-EA-68-9. There are multiple documents, and each document may
(but don't necessarily) duplicate with the exception of the first numeral (0,
1, or 2 only). So, there may exist a 0-SO-1-1, 1-SO-1-1, and 2-SO-1-1, or
only 1 or 2 of these. There are probably 400 or so documents total.
I can either store all of the document records in 1 table with fields for
each value (0,SO,1,1 for example) or store the records in 3 tables, one each
for 0, 1, and 2, OR let the primary key be the readable value (i.e. 0-SO-1-1)
in 1 or 3 tables.
The other table is the trouble report table, which will hold all of the
problem data and relates to the specific document (many troubles to one
document) using the document primary key.
One of the big concerns is designing the reports. They will usually come from
the trouble report table, but i'll have to always combine the values from the
document table instead of using the document table primary key for it to be
readable, unless I use the combined procedure (0-SO-1-1) as the primary key.
Or, make a separate field in the trouble report table (or the document table)
that holds the combined fields value to use for readability. I don't know
the best way to do it!
Wow, that's harder to explain than I anticipated... Please ask for
clarification if you need it.
Thanks for your help!
Ragsman
I am trying to set up simple trouble report type database that will be based
on documents with ID's like such:
0-SO-1-1, or 1-EA-68-9. There are multiple documents, and each document may
(but don't necessarily) duplicate with the exception of the first numeral (0,
1, or 2 only). So, there may exist a 0-SO-1-1, 1-SO-1-1, and 2-SO-1-1, or
only 1 or 2 of these. There are probably 400 or so documents total.
I can either store all of the document records in 1 table with fields for
each value (0,SO,1,1 for example) or store the records in 3 tables, one each
for 0, 1, and 2, OR let the primary key be the readable value (i.e. 0-SO-1-1)
in 1 or 3 tables.
The other table is the trouble report table, which will hold all of the
problem data and relates to the specific document (many troubles to one
document) using the document primary key.
One of the big concerns is designing the reports. They will usually come from
the trouble report table, but i'll have to always combine the values from the
document table instead of using the document table primary key for it to be
readable, unless I use the combined procedure (0-SO-1-1) as the primary key.
Or, make a separate field in the trouble report table (or the document table)
that holds the combined fields value to use for readability. I don't know
the best way to do it!
Wow, that's harder to explain than I anticipated... Please ask for
clarification if you need it.
Thanks for your help!
Ragsman