Operation Details
Description: Returns a list of all groups for a specified goal that does not have a parent group id set.
Sterotype: nsmulti
SQL
SELECT
  PlannedGroup.plannedGroupID,
  PlannedGroup.name,
  PlannedGroup.expectedStartDate,
  PlannedGroup.expectedEndDate,
  PlannedGroup.actualStartDate,
  PlannedGroup.actualEndDate,
  PlannedGoal.caseID
INTO
  :plannedGroupID,
  :name,
  :expectedStartDate,
  :expectedEndDate,
  :actualStartDate,
  :actualEndDate,
  :caseID 
FROM
  PlannedGroup,
  PlannedGoal 
WHERE PlannedGoal.plannedGoalID = :plannedGoalID 
  AND PlannedGroup.plannedGoalID = PlannedGoal.plannedGoalID 
  AND PlannedGroup.parentGroupID IS NULL