Database SQL Operation: HearingRepresentative.countActiveByHearingAndParticipation
Description: | Returns the number of active hearing representatives for a specified hearing and participation. |
Sterotype: | ns |
SELECT
COUNT(hearingRepresentativeID)
INTO
:numberOfRecords
FROM
HearingRepresentative,
CaseParticipantRole
WHERE HearingRepresentative.hearingID = :hearingID
AND HearingRepresentative.participatedCode = :participatedCode
AND HearingRepresentative.caseParticipantRoleID = CaseParticipantRole.caseParticipantRoleID
AND CaseParticipantRole.recordStatus = :recordStatus
|