diff --git a/PRS/PRS_VIE.SRC b/PRS/PRS_VIE.SRC index 5944da05..d3243372 100644 --- a/PRS/PRS_VIE.SRC +++ b/PRS/PRS_VIE.SRC @@ -1831,17 +1831,19 @@ AS -- First version for auditreporting on Support-logins and impersonations CREATE_VIEW(prs_v_rap_impersonations, 0) AS - SELECT t1.fac_tracking_key, - t1.fac_tracking_datum, - t1.fac_tracking_oms, - prs_perslid_naam_friendly - FROM fac_tracking t1, prs_v_perslid_fullnames_all pf - WHERE t1.fac_tracking_refkey = pf.prs_perslid_key - AND t1.fac_srtnotificatie_key = (SELECT fac_srtnotificatie_key - FROM fac_srtnotificatie - WHERE fac_srtnotificatie_code = 'PRSLOG') - AND ( t1.fac_tracking_oms LIKE 'Uitloggen%' - OR UPPER (t1.fac_tracking_oms) LIKE 'INLOGGEN%'); + SELECT t1.fac_tracking_key, + t1.fac_tracking_datum datum, + pf2.prs_perslid_naam_friendly door, + pf1.prs_perslid_naam_friendly als, + t1.fac_tracking_oms omschrijving + FROM fac_tracking t1, prs_v_perslid_fullnames_all pf1, prs_v_perslid_fullnames_all pf2 + WHERE t1.fac_tracking_refkey = pf1.prs_perslid_key + AND t1.prs_perslid_key = pf2.prs_perslid_key + AND t1.fac_srtnotificatie_key = (SELECT fac_srtnotificatie_key + FROM fac_srtnotificatie + WHERE fac_srtnotificatie_code = 'PRSLOG') + AND ( t1.fac_tracking_oms LIKE 'Uitloggen%' + OR UPPER (t1.fac_tracking_oms) LIKE 'INLOGGEN%'); REGISTERRUN('$Id$') #endif // PRS