Quote:
|
Originally Posted by Vmusic
Hi,
I can see two approaches, one approach assumes the tests are rather clearly defined. This is the subtype path you suggested.
The other uses measurements as repeatable components for tests.
I've attached some images.
Vmusic
|
Sorry about the late reply.
There's actually both of these things going on. The way I currently have it modelled is that Test holds some basic parameters that all tests will have, say Operator and Date. Each subtype has parameters that are specific to it. There is also a Measurement table that references the Test table:
table measurement
( measurement_id int primary key
, measurement_type_id references measurement_type
, test_id references test
, measured_value double
);
table measurement_type
( measurement_type_id int primary key
, measurement_name /*say Thickness or Weight*/
);
So this basically looks like your two pictures combined.