Hi
I am looking forward to record some transactions and scenario is as below;
TblInspection!
InspID: PK
InspDate:
Shift: (Day/Night)
Inspector: FK from tblEmployees
WorkCenter: FK from tblWorkcenters
TblInspectionResults
ResultID : pk
InspID : FK (Joint)
CartNo :
CartType:
Product: FK from tblProducts
GoodQty :
RejectQty:
ScrapQty:
Notes:
- One Shift can have many carts to inspect with different products. So one to many relationship between TblInspection & TblInspectionResults.
- Each Product have different qty on each cart to inspect (Like Product A have 20 units and product B have 30 units per cart)
- Results can be in three categories as "GoodQty", "RejectQty" and "ScrapQty".
Example: There can be 10 units good, 5 rejected and 5 scrapped which can be recorded against each field but the issue is to mention the reason for reject and scrap.
May out of 5 rejected units, there is 2 units because of defectA and 3 units because of defectD and same can be in scrapped Qty.
Requirement:
How to make the 3rd table to link for rejected and scrapped quantities for each kind of reasons?
Any help will be appreciated?