Operation Details |
Description: | Determine if the appealed case is already on an active appeal case. |
Sterotype: | nsmulti |
SQL |
SELECT appealCaseID INTO :appealCaseID FROM AppealRelationship, CaseHeader WHERE AppealRelationship.caseID = :caseID AND appealCaseID = CaseHeader.caseID AND recordStatus = :normalRecordStatus AND ( CaseHeader.statusCode = :activeStatusCode OR CaseHeader.statusCode = :openStatusCode OR CaseHeader.statusCode = :approvedStatusCode ) |