Database SQL Operation: PlanTemplate.readStatusByPlanTemplatePlanItemID
Description: | Reads the status of the plan template this plan item is been assigned to. |
Sterotype: | ns |
SELECT
PlanTemplate.recordStatus
INTO
:recordStatus
FROM
PlanTemplate,
PlanTemplateSubGoal,
PlanTemplatePlanItem
WHERE PlanTemplatePlanItem.planTemplatePlanItemID = :planTemplatePlanItemID
AND PlanTemplateSubGoal.planTemplateSubGoalID = PlanTemplatePlanItem.planTemplateSubGoalID
AND PlanTemplateSubGoal.planTemplateID = PlanTemplate.planTemplateID
|