Database SQL Operation: EvidenceApprovalCheck.readByStatusTypeUserProductID
Description: | Returns the maximum percentage for the specified status, type, user name and product identifier. |
Sterotype: | ns |
SELECT
DISTINCT (percentage)
FROM
EvidenceApprovalCheck
WHERE typeCode = :typeCode
AND productID = :productID
AND userName = :userName
AND recordStatus = :recordStatus
AND percentage =
(
SELECT
MAX(percentage)
INTO
:percentage
FROM
EvidenceApprovalCheck
WHERE typeCode = :typeCode
AND productID = :productID
AND userName = :userName
AND recordStatus = :recordStatus
)
|