SELECT
CaseEvidenceGroupLink.caseEvidenceGroupLinkID,
CaseEvidenceGroupLink.caseEvidenceGroupID,
CaseEvidenceGroupLink.relatedID,
CaseEvidenceGroupLink.evidenceType,
CaseEvidenceGroupLink.isEditableInTreeInd,
CaseEvidenceGroupLink.evidenceTypeInstanceID,
CaseEvidenceGroupLink.versionNo
INTO
:caseEvidenceGroupLinkID,
:caseEvidenceGroupID,
:relatedID,
:evidenceType,
:isEditableInTreeInd,
:evidenceTypeInstanceID,
:versionNo
FROM
CaseEvidenceTree,
CaseEvidenceGroup,
CaseEvidenceGroupLink
WHERE CaseEvidenceTree.caseEvidenceTreeID = :caseEvidenceTreeID
AND CaseEvidenceGroup.caseEvidenceTreeID = CaseEvidenceTree.caseEvidenceTreeID
AND CaseEvidenceGroupLink.caseEvidenceGroupID = CaseEvidenceGroup.caseEvidenceGroupID
AND CaseEvidenceGroupLink.evidenceType = :evidenceType
|