SELECT
Hearing.versionNo,
Hearing.typeCode,
Hearing.scheduledDateTime,
Hearing.statusCode,
OrgObjectLink.orgObjectLinkID,
Hearing.comments,
Hearing.referenceNumber,
Hearing.noticeDate
INTO
:versionNo,
:typeCode,
:scheduledDateTime,
:statusCode,
:orgObjectLinkID,
:comments,
:referenceNumber,
:noticeDate
FROM
Hearing,
HearingUserRole,
CaseUserRole,
OrgObjectLink
WHERE Hearing.hearingID = :hearingID
AND Hearing.hearingID = HearingUserRole.hearingID
AND HearingUserRole.caseUserRoleID = CaseUserRole.caseUserRoleID
AND CaseUserRole.typeCode = :typeCode
AND CaseUserRole.orgObjectLinkID = OrgObjectLink.orgObjectLinkID
|