SELECT
requestID,
requestType,
requestCategory,
requestStatus,
R.concernRoleID,
dateCreated,
dateSubmitted,
rejectionReason,
comments,
R.versionNo
INTO
:requestID,
:requestType,
:requestCategory,
:requestStatus,
:concernRoleID,
:dateCreated,
:dateSubmitted,
:rejectionReason,
:comments,
:versionNo
FROM
Request R INNER JOIN
AdministrationConcernRole
ON (R.concernRoleID = AdministrationConcernRole.concernRoleID) INNER JOIN
AdministrationRole
ON (AdministrationConcernRole.administrationRoleID = AdministrationRole.administrationRoleID)
where
R.datesubmitted >= :startDate
and R.datesubmitted <= :endDate
and AdministrationRole.userName = :userName
|