SELECT
instructLineItemID,
amount,
unprocessedAmount,
instructLineItemCategory,
instructionLineItemType,
financialCompID,
coverPeriodFrom,
coverPeriodTo,
effectiveDate,
creationDate,
statusCode,
caseID,
finInstructionID,
concernRoleID,
caseNomineeID,
primaryClientID,
deliveryMethodType,
creditDebitType,
currencyExchangeID,
currencyTypeCode,
adjustmentInd,
adjustmentFrequency,
nextAdjustmentDate,
instrumentGenInd,
fundID,
maximumAmount,
versionNo,
dueDate,
inRespectOfID
INTO
:instructLineItemID,
:amount,
:unprocessedAmount,
:instructLineItemCategory,
:instructionLineItemType,
:financialCompID,
:coverPeriodFrom,
:coverPeriodTo,
:effectiveDate,
:creationDate,
:statusCode,
:caseID,
:finInstructionID,
:concernRoleID,
:caseNomineeID,
:primaryClientID,
:deliveryMethodType,
:creditDebitType,
:currencyExchangeID,
:currencyTypeCode,
:adjustmentInd,
:adjustmentFrequency,
:nextAdjustmentDate,
:instrumentGenInd,
:fundID,
:maximumAmount,
:versionNo,
:dueDate,
:inRespectOfID
FROM
InstructionLineItem
WHERE InstructionLineItem.caseID = :caseID
AND InstructionLineItem.instructionLineItemType = :typeCode
AND
(
InstructionLineItem.effectiveDate >= :effectiveDateFrom
OR :effectiveDateFrom IS NULL
)
AND
(
InstructionLineItem.effectiveDate <= :effectiveDateTo
OR :effectiveDateTo IS NULL
)
|