ST_GRANT_ERNS

(SQL View)
Index Back

Stock Grant EMPL_RCD

If only one EMPL_RCD can be reported for a Person, this table will define which to use.

SELECT A.EMPLID , A.EMPL_RCD , A.EFFDT , A.PER_ORG FROM PS_JOB A WHERE (A.PER_ORG = 'EMP' OR A.PER_ORG = 'CWR' OR (A.PER_ORG = 'POI' AND A.POI_TYPE IN ('00003', '00004'))) AND A.EFFDT = ( SELECT MAX(B.EFFDT) FROM PS_JOB B WHERE A.EMPLID = B.EMPLID AND A.EMPL_RCD = B.EMPL_RCD AND B.EFFDT <= %CurrentDateIn) AND A.EFFSEQ = ( SELECT MAX(C.EFFSEQ) FROM PS_JOB C WHERE A.EMPLID = C.EMPLID AND A.EMPL_RCD = C.EMPL_RCD AND A.EFFDT = C.EFFDT)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID

Default Value: PER_ORG_ASGN.EMPLID

Prompt Table: PER_ORG_ASGN

2 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Rcd Nbr
3 EFFDT Date(10) DATE Effective Date

Default Value: %date

4 PER_ORG Character(3) VARCHAR2(3) NOT NULL Defines the Organizational Relationship(s) that a Person has to the Organization. These are Employee, Contingent Worker, and Persons of Interest.
CWR=Contingent Worker
EMP=Employee
POI=Person of Interest