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