Hi Guys, i am setting up a mySQL database which will hold testing results on various products.
Quick overview of the system. There are around 30 products which are made and will be tested once production has finished. Each product will have different tests done on it depending what product it is. (So i think each product should have it own testing table with all its results). If products fail the testing requirements then a retest will have to be submitted. So therefore each product should have its own retest table with its results as well. Quite new to the whole database relationship stuff so here is what i think it should be like, but please correct me or help if possible.
Thanks
Quick overview of the system. There are around 30 products which are made and will be tested once production has finished. Each product will have different tests done on it depending what product it is. (So i think each product should have it own testing table with all its results). If products fail the testing requirements then a retest will have to be submitted. So therefore each product should have its own retest table with its results as well. Quite new to the whole database relationship stuff so here is what i think it should be like, but please correct me or help if possible.
Code:
products
--------------------------------------------------
product_id | product_name| Testing_id | Retest_id
-1 | product1 | 1 | 1
-2 | product2 | 2 | 2
-3 | product3 | 3 | 3
Testing
---------------------------------------------------
Testing_id | Testing_name | product_id
-1 | product1Test | 1
-2 | product2Test | 2
-3 | product3Test | 3
Product1Test
-------------------------------------------------
Date | test1 | Test 2 | Test3 | Test4 | Testing_id
...... | | | | | 1
...... | | | | |
...... | | | | |
Product1Retest
------------------------------------------------
Date | test1 | Test 2 | Test3 | Test4 | Retest_id
...... | | | | | 1
...... | | | | |
...... | | | | |
Thanks