Operation Details
Description: Retrieves all case evidence tree records for a specified case excluding canceled and superseded records.
Sterotype: nsmulti
SQL
SELECT
  CaseEvidenceTree.caseEvidenceTreeID,
  CaseEvidenceTree.caseID,
  CaseEvidenceTree.effectiveFrom,
  CaseEvidenceTree.statusCode,
  CaseEvidenceTree.previousEvidenceID,
  CaseEvidenceTree.versionNo
INTO
  :caseEvidenceTreeID,
  :caseID,
  :effectiveFrom,
  :statusCode,
  :previousEvidenceID,
  :versionNo 
FROM
  CaseEvidenceTree 
WHERE CaseEvidenceTree.caseID = :caseID 
  AND 
  (
    CaseEvidenceTree.statusCode <> :statusCode 
    AND CaseEvidenceTree.statusCode <> :statusCode2 
  ) 
ORDER BY caseID,
  effectiveFrom,
  statusCode