SELECT
CaseHeader.caseID,
CaseHeader.caseTypeCode,
CaseHeader.startDate,
CaseHeader.statusCode,
ConcernRole.concernRoleID,
ConcernRole.concernRoleName,
ConcernRole.concernRoleType
INTO
:caseID,
:caseTypeCode,
:startDate,
:statusCode,
:concernRoleID,
:concernRoleName,
:concernRoleType
FROM
CaseHeader,
ConcernRole
WHERE CaseHeader.concernRoleID = :concernRoleID
AND CaseHeader.caseTypeCode = :caseTypeCode
AND ConcernRole.concernRoleID = :concernRoleID
AND
(
CaseHeader.statusCode <= :statusCode
OR CaseHeader.statusCode >= :statusCode
)
|