HR_SEC_ITL_VW

(SQL View)
Index Back

HR SEC VIEWS Intl Assgnment

This view is used for the HR Security views processing for type 'I'.

SELECT A.EMPLID ,A.EMPL_RCD ,A.EFFDT ,A.EFFSEQ ,A.EMPL_STATUS ,A.SETID_DEPT ,A.DEPTID ,A.STD_HOURS ,A.COMPANY FROM PS_JOB A WHERE A.EFFDT = ( SELECT MAX(EFFDT) FROM PS_JOB B WHERE B.EMPLID = A.EMPLID AND B.EMPL_RCD = A.EMPL_RCD AND B.EFFDT <= %CURRENTDATEIN) AND A.EFFSEQ = ( SELECT MAX(EFFSEQ) FROM PS_JOB C WHERE C.EMPLID = A.EMPLID AND C.EMPL_RCD = A.EMPL_RCD AND C.EFFDT = A.EFFDT)

# 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 EFFDT Date(10) DATE Effective Date
4 EFFSEQ Number(3,0) SMALLINT NOT NULL Effective Sequence
5 EMPL_STATUS Character(1) VARCHAR2(1) NOT NULL Payroll Status
A=Active
D=Deceased
L=Leave of Absence
P=Leave With Pay
Q=Retired With Pay
R=Retired
S=Suspended
T=Terminated
U=Terminated With Pay
V=Terminated Pension Pay Out
W=Short Work Break
X=Retired-Pension Administration
6 SETID_DEPT Character(5) VARCHAR2(5) NOT NULL Department Set ID
7 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
8 STD_HOURS Number(7,2) DECIMAL(6,2) NOT NULL Standard Hours
9 COMPANY Character(3) VARCHAR2(3) NOT NULL Company