SELECT
HearingDecisionAttachmentLink.attachmentID,
fileReference,
fileLocation,
attachmentName,
Attachment.versionNo,
HearingDecision.versionNo
INTO
:attachmentID,
:documentReference,
:documentLocation,
:attachmentName,
:attachmentVersionNo,
:hearingDecisionVersionNo
FROM
HearingDecisionAttachmentLink,
Attachment,
HearingDecision
WHERE HearingDecisionAttachmentLink.attachmentID = Attachment.attachmentID
AND attachmentLinkID = :attachmentLinkID
AND HearingDecisionAttachmentLink.hearingDecisionID = HearingDecision.hearingDecisionID
|