I was just dealing with the test RESULTS. I figured that a test would apply to several vehicles and assumed you also had a tests table that described the tests themselves.
To explain this further you have a many to many relationship. One vehicle can have multiple tests, and one test can be given to multiple vehicles. However, each test on a specific vehicle will only have one results sets. What we do here is use what's called a Join table. But in this case the join table does more then just join the other two since it records the results.
So you have three tables: Vehicles, Tests, Test Results. The Vehicles table holds info about the vehicle (i.e make, model, year, etc.). The Tests table holds info about each test (i.e. Testname, equipment used, etc.). The Test Results table holds info about what vehicle, what test and what the results were. The only differences in my original recommmendation is that TestType is a FK to the Tests table. And that the table is now tblTestResults and the PK is TestResultsID.
|