1.
SELECT fu.user_name,
papf.full_name,
cc.cardmember_name,
cc.card_number,
tr.transaction_type,
tr.transaction_date,
tr.transaction_amount,
tr.posted_currency_code,
tr.merchant_name1,
tr.merchant_city,
round(sysdate - tr.transaction_date) age_cc_trx,
tr.posted_amount,
tr.trx_id
FROM ap_credit_card_trxns_all tr,
ap_cards_all cc,
hr.per_all_people_f papf,
fnd_user fu
WHERE tr.card_ID = cc.card_ID
and tr.card_program_id = cc.card_program_id
and cc.employee_id = papf.person_id
AND fu.employee_id = papf.person_id
AND upper(fu.user_name) = upper('<<USER>>')
and tr.report_header_id is null;
2.
No comments:
Post a Comment