SELECT
caseDeductionItemID,
concernRoleID,
createdDate,
startDate,
endDate,
statusCode,
comments,
relatedCaseID,
caseID,
rate,
amount,
deductionType,
relatedObjectiveID,
rulesObjectiveID,
versionNo
INTO
:caseDeductionItemID,
:concernRoleID,
:createdDate,
:startDate,
:endDate,
:statusCode,
:comments,
:relatedCaseID,
:caseID,
:rate,
:amount,
:deductionType,
:relatedObjectiveID,
:rulesObjectiveID,
:versionNo
FROM
CaseDeductionItem
WHERE rulesObjectiveID = :rulesObjectiveID
AND caseID = :caseID
AND statusCode = :statusCode
AND startDate <= :effectiveDate
|