SELECT
HearingRepresentative.hearingRepresentativeID,
HearingRepresentative.hearingID,
HearingRepresentative.typeCode,
CaseParticipantRole.recordStatus,
HearingRepresentative.feeAmount,
HearingRepresentative.feeApprovedCode,
HearingRepresentative.participatedCode,
HearingRepresentative.behalfOfCode,
ConcernRole.concernRoleName,
HearingRepresentative.caseParticipantRoleID
INTO
:hearingRepresentativeID,
:hearingID,
:typeCode,
:recordStatus,
:feeAmount,
:feeApprovedCode,
:participatedCode,
:behalfOfCode,
:name,
:caseParticipantRoleID
FROM
HearingRepresentative,
CaseParticipantRole,
ConcernRole
WHERE HearingRepresentative.hearingID = :hearingID
AND HearingRepresentative.caseParticipantRoleID = CaseParticipantRole.caseParticipantRoleID
AND CaseParticipantRole.participantRoleID = ConcernRole.concernRoleID
|