Operation Details
Description: Counts sub goals that the outcome is associated with.
Sterotype: ns
SQL
SELECT
  COUNT(*)
INTO
  :recordCount 
FROM
  SubGoalOutcomeLink,
  SubGoal 
WHERE SubGoalOutcomeLink.outcomeID = :outcomeID 
  AND SubGoalOutcomeLink.subGoalID = SubGoal.subGoalID 
  AND SubGoal.recordStatus = :recordStatus