SELECT
ConcernRoleRelationship.concernRoleID,
ConcernRoleRelationship.concernRoleType,
ConcernRoleRelationship.relConcernRoleID,
ConcernRoleRelationship.relConcernRoleType,
ConcernRoleRelationship.relationshipType,
ISHholdRshipEvidence.nonParentCaretakerRelInd,
ISHholdRshipEvidence.recipISHholdRshipEvidenceID,
ConcernRoleRelationship.statusCode
INTO
:participantRoleID,
:participantRoleType,
:relParticipantRoleID,
:relParticipantRoleType,
:relationshipType,
:nonParentCaretakerRelInd,
:recipISHholdRshipEvidenceID,
:statusCode
FROM
ISHholdRshipEvidence,
CaseEvidenceGroup,
CaseEvidenceGroupLink,
ConcernRoleRelationship
WHERE CaseEvidenceGroup.caseEvidenceGroupID = :caseEvidenceGroupID
AND CaseEvidenceGroup.caseEvidenceGroupID = CaseEvidenceGroupLink.caseEvidenceGroupID
AND CaseEvidenceGroupLink.relatedID = ISHholdRshipEvidence.isHholdRshipEvidenceID
AND ISHholdRshipEvidence.participantRoleRshipID = ConcernRoleRelationship.concernRoleRelationshipID
AND ISHholdRshipEvidence.nonParentCaretakerRelInd = :npcrInd
AND ConcernRoleRelationship.concernRoleID = :participantRoleID
AND ConcernRoleRelationship.statusCode = :statusCode
|