Database SQL Operation: InstructionLineItem.searchRelCaseIDByFinInstructID
Description: | To get a list of CaseIDs for a specified financial instruction ID. |
Sterotype: | nsmulti |
SELECT
DISTINCT(InstructionLineItem.caseID)
INTO
:caseID
FROM
InstructionLineItem,
InstructionLineItemRelation
WHERE InstructionLineItemRelation.relatedLineItemID in
(
SELECT
InstructionLineItem.instructLineItemID
FROM
InstructionLineItem
WHERE InstructionLineItem.finInstructionID = :finInstructionID
)
AND InstructionLineItemRelation.instructLineItemID = InstructionLineItem.instructLineItemID
|