Database SQL Operation: ISPAssistanceUnitProc.searchCaseByTypeIDAndReceivedDate
Description: | Search Existing programs by product type and date |
Sterotype: | nsmulti |
SELECT
CaseHeader.caseID,
CaseHeader.receivedDate,
CaseHeader.startDate,
CaseHeader.registrationDate
INTO
:caseID,
:receivedDate,
:startDate,
:registrationDate
FROM
CaseHeader,
ProductDelivery
WHERE CaseHeader.integratedCaseID = :caseID
AND CaseHeader.caseID = ProductDelivery.caseID
AND ProductDelivery.productType = :productType
AND ProductDelivery.productID = :productID
AND CaseHeader.receivedDate >= :receivedDate
ORDER BY CaseHeader.startDate
|