GPDE_NMTYPE1_VW

(SQL View)
Index Back

View for Name type

View to Retrive correct Name type for Germany reporting.

SELECT EMPLID , NAME_TYPE , EFFDT FROM PS_NAMES A WHERE ( A.NAME_TYPE IN ( SELECT PNT.NAME_TYPE FROM PS_GPDE_AL_INSTALL PNT) ) OR ( A.NAME_TYPE NOT IN ( SELECT NAME_TYPE FROM PS_GPDE_AL_INSTALL) AND NOT EXISTS( SELECT 'x' FROM PS_NAMES AE WHERE AE.EMPLID = A.EMPLID AND AE.NAME_TYPE = ( SELECT PNT2.NAME_TYPE FROM PS_GPDE_AL_INSTALL PNT2) AND AE.EFFDT <= A.EFFDT ) AND A.NAME_TYPE = 'PRI' )

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 NAME_TYPE Character(3) VARCHAR2(3) NOT NULL Type of Name
3 EFFDT Date(10) DATE Effective Date

Default Value: %date