Query to find if the Expense Report Preparer and Award Manager are Same

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
SELECT Decode(Count(*), 0, 'false', 
                        'true') 
FROM   apps.ap_expense_report_headers_all 
WHERE  report_header_id = :transactionId 
       AND employee_id IN (SELECT ap_web_ame_pkg.Getawardmanagerid(award_id, 
                                  sysdate) 
                           FROM   apps. ap_exp_report_dists_all dist 
                           WHERE  report_header_id = :transactionId 
                                  AND rownum = 1 
                                  AND award_id IS NOT NULL)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s