SELECT
t.taskID,
t.priority,
t.reservedBy,
u.fullName,
t.assignedDateTime,
w.deadlineTime,
t.wdoSnapshot,
t.overflowInd,
t.status,
t.restartTime,
t.versionNo
INTO
:taskID,
:taskPriority,
:taskReservedByUserName,
:taskReservedByFullUserName,
:taskAssignedDateTime,
:taskDeadlineDateTime,
:wdoSnapshot,
:overflowInd,
:status,
:restartTime,
:versionNo
FROM
Task t
LEFT OUTER JOIN
Users u
ON (t.reservedBy = u.userName)
LEFT OUTER JOIN
WorkflowDeadline w
ON (t.taskID = w.taskID)
WHERE t.reservedBy = :relatedName
ORDER BY deadlineTime ASC
|