CHOISIR NewTemplate.ProcessSequence, NewTemplate.MasterProcessID, NewTemplate.WorkFlowProcessID
DE (
CHOISIR tblWorkFlowTemplates.MasterProcessID, tblWorkFlowAssignmentsDetail.WorkFlowAssignmentID, tblWorkFlowTemplates.ProcessSequence,
tblWorkFlowTemplates.TemplateMasterID, tblWorkFlowAssignmentsDetail.Completed
Du tblWorkFlowAssignmentsDetail INTÉRIEUR JOINDRE les tblWorkFlowTemplates DESSUS
tblWorkFlowAssignmentsDetail.WorkFlowProcessID = tblWorkFlowTemplates.WorkFlowProcessID
LÀ OÙ tblWorkFlowAssignmentsDetail.WorkFlowAssignmentID = @mWorkFlowAssignmentID
ORDRE PAR tblWorkFlowTemplates.ProcessSequence
) CurrentTemplate
LA DROITE SE JOIGNENT (
CHOISIR tblWorkFlowTemplates.MasterProcessID, tblWorkFlowTemplates.ProcessSequence,
tblWorkFlowTemplates.TemplateMasterID, tblWorkFlowTemplates.WorkFlowProcessID
Des tblWorkFlowTemplates
LÀ OÙ tblWorkFlowTemplates.TemplateMasterID = @WorkFlowTemplate
ORDRE PAR tblWorkFlowTemplates.ProcessSequence
) NewTemplate SUR CurrentTemplate.MasterProcessID = NewTemplate.MasterProcessID
LÀ OÙ CurrentTemplate.MasterProcessID est nul OU CurrentTemplate.Completed = 0
ORDRE PAR NewTemplate.ProcessSequence
|