This might be simple or it might not...
I've got a table which stores items of equipment. Some items of equipment need servicing and they might need more than 1 type of service. So far I've come up with:
Table Name: [Equipment], PKey: [ItemID], Other fields as appropriate...
Table Name: [ServiceType], PKey: [ServiceTypeID], Description, Frequency
Table Name: [Service], PKey: [ServiceID], FKey: [ItemID], FKey: [ServiceTypeID]
Now what I want to do is store the results for each type of service in its own table (each service type will have different checks and therefore different results):
Table Name: [ServiceResultsForServiceTypeID1], PKey: [ServiceResultsID], FKey: [ItemID], DateTested, Results as appropriate...
Table Name: [ServiceResultsForServiceTypeID2], PKey: [ServiceResultsID], FKey: [ItemID], DateTested, Results as appropriate...
Now how do I join these result tables to the rest of the database? I thought about storing the table name for the results in a field in the ServiceType table but don't see how this'll work.
I hope I'm clear enough - let me know if this doesn't make sense.
Thanks in advance,
Matt.