SELECT
ili.instructLineItemID,
ili.instructionLineItemType,
ili.instructLineItemCategory,
ili.amount,
ili.effectiveDate,
ili.finInstructionID,
relatedili.caseID,
ili.concernRoleID,
ili.adjustmentInd,
ili.statusCode,
alloc.amount,
alloc.allocationDate
INTO
:creditInstructionLineItemID,
:creditType,
:creditCategory,
:creditAmount,
:creditEffectiveDate,
:creditFinInstructionID,
:creditCaseID,
:creditConcernRoleID,
:creditAdjustmentInd,
:creditStatusCode,
:allocationAmount,
:allocationDate
FROM
InstructionLineItem ili,
AllocationLine alloc,
InstructionLineItemRelation ilirel,
InstructionLineItem relatedili
WHERE alloc.relatedLineItemID = :instructLineItemID
AND alloc.instructLineItemID = ili.instructLineItemID
AND alloc.instructLineItemID = ilirel.relatedLineItemID
AND ilirel.instructLineItemID = relatedili.instructLineItemID
|