Database SQL Operation: InvestigationApprovalCheck.readByOrgUnitTypeCodeInvestigationAndStatus
Description: | This method returns the maximum percentage and record count of active approval checks configured for an organization unit and a particular investigation. |
Sterotype: | ns |
SELECT
MAX(percentage),
COUNT(*)
INTO
:percentage,
:numRecords
FROM
InvestigationApprovalCheck
WHERE organisationUnitID = :organisationUnitID
AND investigationConfigID = :investigationConfigID
AND typeCode = :typeCode
AND recordStatus = :recordStatus
|