SELECT
WaitListEntry.waitListEntryID,
WaitListEntry.waitListID,
WaitListEntry.caseParticipantRoleID,
WaitListEntry.position,
WaitListEntry.priority,
WaitListEntry.expiryDate,
WaitListEntry.removalReason,
WaitListEntry.status,
WaitListEntry.versionNo,
WaitListEntry.reviewDate,
WaitListEntry.comments
INTO
:waitListEntryID,
:waitListID,
:caseParticipantRoleID,
:position,
:priority,
:expiryDate,
:removalReason,
:status,
:versionNo,
:reviewDate,
:comments
FROM
WaitListEntry
WHERE WaitListEntry.status = :status
AND WaitListEntry.reviewDate <= :reviewDate
|