SELECT document_num,
(SELECT user_name
FROM apps.fnd_user fu
WHERE fu.user_id = pcr.created_by) created_by,
(SELECT email_address
FROM apps.fnd_user fu
WHERE fu.user_id = pcr.created_by) createdby_emailaddress,
creation_date,
(SELECT user_name
FROM apps.fnd_user fu
WHERE fu.user_id = pcr.last_updated_by) last_updated_by,
(SELECT email_address
FROM apps.fnd_user fu
WHERE fu.user_id = pcr.last_updated_by) updatedby_emailaddress,
last_update_date,
old_quantity,
new_quantity,
response_reason
FROM apps.po_change_requests pcr
WHERE request_status = 'REJECTED'
AND last_update_date > sysdate - 30 -- you can change the days depends on your need
ORDER BY document_num ASC
(SELECT user_name
FROM apps.fnd_user fu
WHERE fu.user_id = pcr.created_by) created_by,
(SELECT email_address
FROM apps.fnd_user fu
WHERE fu.user_id = pcr.created_by) createdby_emailaddress,
creation_date,
(SELECT user_name
FROM apps.fnd_user fu
WHERE fu.user_id = pcr.last_updated_by) last_updated_by,
(SELECT email_address
FROM apps.fnd_user fu
WHERE fu.user_id = pcr.last_updated_by) updatedby_emailaddress,
last_update_date,
old_quantity,
new_quantity,
response_reason
FROM apps.po_change_requests pcr
WHERE request_status = 'REJECTED'
AND last_update_date > sysdate - 30 -- you can change the days depends on your need
ORDER BY document_num ASC
Comments
Post a Comment