Database SQL Operation: HearingServiceSupplier.countActiveUserByHearingParticipation
Description: | Returns the number of active user service suppliers for a hearing with the specified participation. |
Sterotype: | ns |
SELECT
COUNT(hearingServiceSupplierID)
INTO
:numberOfRecords
FROM
HearingServiceSupplier,
CaseUserRole
WHERE HearingServiceSupplier.hearingID = :hearingID
AND HearingServiceSupplier.participatedCode = :participatedCode
AND HearingServiceSupplier.supplierLinkID = CaseUserRole.caseUserRoleID
AND CaseUserRole.recordStatus = :recordStatus
|