select requestId, ownerId, ownerType, requestKey, toUserId, fromUserId, fromEmail, requestURL, handlerTemplatePath, requestTime, disposition, config, requestTitle, requestSubject, response, responseTime, requestTrackingCode, responseDueDate, requestAnnotation, requestSent, sendCount from tbl_WRK_UserRequests with (nolock) where disposition = '?' and fromUserId = and toUserId <> and ownerId = and ownertype = order by requestTime select requestId, ownerId, ownerType, requestKey, toUserId, fromUserId, fromEmail, requestURL, handlerTemplatePath, requestTime, disposition, config, requestTitle, requestSubject, response, responseTime, requestTrackingCode, responseDueDate, requestAnnotation, requestSent, sendCount from tbl_WRK_UserRequests with (nolock) where disposition = '?' and toUserId = and ownerId = and ownertype = order by requestTime