SELECT DISTINCT
PAPF.FULL_NAME APPROVED_BY
, AIAH.APPROVER_COMMENTS
, TO_CHAR(AIAH.LAST_UPDATE_DATE,'DD-MON-YYYY') APPROVAL_DATE
, APPROVAL_HISTORY_ID
FROM
AP_INV_APRVL_HIST_ALL AIAH
, FND_USER FUS
, PER_ALL_PEOPLE_F PAPF
WHERE
INVOICE_ID = :INVOICE_ID
AND RESPONSE = 'APPROVED'
AND AIAH.CREATED_BY = FUS.USER_ID
AND FUS.EMPLOYEE_ID = PAPF.PERSON_ID
PAPF.FULL_NAME APPROVED_BY
, AIAH.APPROVER_COMMENTS
, TO_CHAR(AIAH.LAST_UPDATE_DATE,'DD-MON-YYYY') APPROVAL_DATE
, APPROVAL_HISTORY_ID
FROM
AP_INV_APRVL_HIST_ALL AIAH
, FND_USER FUS
, PER_ALL_PEOPLE_F PAPF
WHERE
INVOICE_ID = :INVOICE_ID
AND RESPONSE = 'APPROVED'
AND AIAH.CREATED_BY = FUS.USER_ID
AND FUS.EMPLOYEE_ID = PAPF.PERSON_ID