SELECT /*+ DYNAMIC_SAMPLING(Ns 5) */ WS.ID FROM #IB GetPLMJONodes(:DocID) Ns #MS GetPLMJONodes(:DocID) Ns #ORA Table(GetPLMJONodes(:DocID)) Ns #ALL JOIN PLMJONodes N ON N.ID = Ns.ID JOIN PLMJOOutputItems O ON O.Owner_ID = N.ID JOIN PLMJobOrdersRoutines R ON (R.parent_id = O.ID) JOIN PLMWorkScheduleItems WS ON WS.JORoutine_ID = R.ID WHERE WS.Priority <= 0 ORDER BY Ns.TreeLevel, R.compulsoryoperation DESC, R.PosIndex DESC
Generated by ABRA Software a.s. 27.10.2021 16:34:49