Database SQL Operation: PlannedGoal.readIDAndGoalContractTextByCaseID
Description: | @deprecated by readIDAndGoalContractTextByCaseID1.
@deprecated-since V6.0 SP2.
Reads the active planned goal id and goal contract text for a service plan id. |
Sterotype: | ns |
SELECT
PlannedGoal.plannedGoalID,
SE.contractText
INTO
:plannedGoalID,
:goalContractText
FROM
(GoalContractText INNER JOIN
(
SELECT
ContractText,
contractTextID
FROM
ContractText,
ConcernRole
WHERE ConcernRole.preferredLanguage = ContractText.languageCode
AND ConcernRole.concernRoleID = :concernRoleID
) SE
ON GoalContractText.contractTextID = SE.contractTextID )
RIGHT
JOIN
PlannedGoal
ON GoalContractText.goalID = PlannedGoal.goalID
WHERE PlannedGoal.caseID = :caseID
|