SELECT JobNo from MPL_DET MD INNER JOIN MPL_ITDET MID ON MD.JobNo = MID.JobNo WHERE MID.IssQty < ( MID.QtyPSys * MD.ReqQty )
SELECT d.JobNo FROM MPL_ITEDT i JOIN MPL_DET d ON i.JobNo=d.JobNo WHERE i.IssQty < (i.QtyPsys * d.ReqQty)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)