SELECT
ConcernRole.concernRoleName,
ConcernRole.concernRoleID,
AdminIntegratedCase.homePageName,
AdminIntegratedCase.memberHomePageName,
AdminIntegratedCase.integratedCaseType
INTO
:concernRoleName,
:concernRoleID,
:homePageName,
:memberHomePageName,
:integratedCaseType
FROM
CaseHeader CaseHeader1,
ConcernRole,
AdminIntegratedCase,
CaseHeader CaseHeader2
WHERE CaseHeader2.caseID = :caseID
AND
(
CaseHeader1.caseID = :caseID
OR CaseHeader1.caseID = CaseHeader2.integratedCaseID
)
AND ConcernRole.concernRoleID = CaseHeader1.concernRoleID
AND AdminIntegratedCase.integratedCaseType = CaseHeader1.integratedCaseType
|