SELECT Min(PV2.BeginTime$date), Max(PV2.EndTime$date) FROM CRPPlanVariants2 PV2 JOIN PLMWorkScheduleItems WSI ON (PV2.WorkScheduleItem_ID = WSI.ID) JOIN PLMReqRoutines ReqR ON (WSI.ReqRoutine_ID = reqR.ID) JOIN PLMReqOutputItems ReqOI ON (ReqR.Parent_ID = ReqOI.ID) JOIN PLMReqNodes ReqN ON (ReqOI.Owner_ID = ReqN.ID) WHERE PV2.Parent_ID = :OBJID AND ReqN.Parent_ID = :ID AND WSI.JORoutine_ID IS NULL
Generated by ABRA Software a.s. 27.10.2021 16:35:42