GP_AUDIT_TBL_VW

(SQL View)
Index Back

GP Audit Chain Search

GP Audit Chain Search Record

SELECT DISTINCT A.EMPLID , A.EMPL_RCD , A.CAL_RUN_ID , B.NAME FROM PS_GP_AUDIT_TBL A , PS_NAMES B WHERE A.EMPLID = B.EMPLID AND B.NAME_TYPE = 'PRI' AND B.EFFDT = ( SELECT MAX(B1.EFFDT) FROM PS_NAMES B1 WHERE B1.EMPLID = B.EMPLID AND B1.NAME_TYPE = B.NAME_TYPE AND B1.EFFDT <= %CurrentDateIn) AND EXISTS ( SELECT 'X' FROM PS_GP_OPR_RULE_PRF C WHERE (C.USED_BY= 'A' OR (C.USED_BY = 'C' AND C.OPRID = %OperatorId)))

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Record
3 CAL_RUN_ID Character(18) VARCHAR2(18) NOT NULL Calendar Run Id
4 NAME Character(50) VARCHAR2(50) NOT NULL Name