Database SQL Operation: CaseHeader.countByOwnerAndStatus
Description: | @deprecated by countByOwnerAndStatus1.<br />
@deprecated-since V6.0. <br />
Count all the records by user and case status<br /> |
Sterotype: | ns |
SELECT
COUNT(*)
INTO
:value
FROM
CaseHeader,
CaseUserRole,
OrgObjectLink
WHERE OrgObjectLink.userName = :userName
AND OrgObjectLink.orgObjectLinkID = CaseUserRole.orgObjectLinkID
AND CaseHeader.caseID = CaseUserRole.caseID
AND
(
CaseHeader.statusCode = :statusCode
OR :statusCode IS NULL
)
AND CaseUserRole.typeCode = :typeCode
|