Operation Details
Description: Reads related case reference details by case ID and reason code.
Sterotype: ns
SQL
SELECT
  relatedCaseID,
  CaseRelationship.startDate,
  CaseHeader.caseReference
INTO
  :relatedCaseID,
  :startDate,
  :caseReference 
FROM
  CaseRelationship,
  CaseHeader 
WHERE CaseRelationship.caseID = :caseID 
  AND CaseRelationship.reasonCode = :reasonCode 
  AND CaseHeader.caseID = CaseRelationship.relatedCaseID