DIR_REPORTS_VW7

(SQL View)
Index Back

Direct Reports View 7

Direct Reports View for access type "7" (by Group Id.)

SELECT A.EMPLID , A.EMPL_RCD , A.GB_GROUP_ID , C.MANAGER_ID , B.NAME , B.LAST_NAME , B.FIRST_NAME FROM PS_GB_GRP_RES_TBL A , PS_PERSON_NAME B , PS_GB_GROUP_TBL C WHERE A.EMPLID = B.EMPLID AND C.GB_GROUP_ID = A.GB_GROUP_ID AND C.EFFDT = ( SELECT MAX(C1.EFFDT) FROM PS_GB_GROUP_TBL C1 WHERE C1.GB_GROUP_ID = C.GB_GROUP_ID AND C1.EFFDT <= %CurrentDateIn) AND A.VERSIONGBQDM = ( SELECT MAX(A1.VERSIONGBQDM) FROM PS_GB_GRP_RES_TBL A1 WHERE A1.GB_GROUP_ID = A.GB_GROUP_ID)

# 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 GB_GROUP_ID Character(15) VARCHAR2(15) NOT NULL Group Build ID.
4 MANAGER_ID Character(11) VARCHAR2(11) NOT NULL Manager ID
5 NAME Character(50) VARCHAR2(50) NOT NULL Name
6 LAST_NAME Character(30) VARCHAR2(30) NOT NULL Last Name
7 FIRST_NAME Character(30) VARCHAR2(30) NOT NULL First Name