SELECT
activityID,
userName,
organisationID,
subject,
activityTypeCode,
startDateTime,
endDateTime,
allDayInd,
locationID,
locationName,
priorityCode,
timeStatusCode,
notes,
recurrenceID,
caseID,
concernRoleID
INTO
:activityID,
:userName,
:organisationID,
:subject,
:activityTypeCode,
:startDateTime,
:endDateTime,
:allDayInd,
:locationID,
:locationName,
:priorityCode,
:timeStatusCode,
:notes,
:recurrenceID,
:caseID,
:concernRoleID
FROM
Activity
WHERE organisationID = :organisationID
AND startDateTime <= :endDateTime
AND endDateTime >= :startDateTime
AND recordStatusCode = :recordStatusCode
|