GVT_IRR_SRCH

(SQL View)
Index Back

IRR Search View

GVT_IRR_SRCH returns all GVT_IRR_CONTROL records for a given EMPLID and EMPL_RCD#

SELECT DISTINCT %Sql(SCRTY_SEL_PKEY, OPR,JOB) , %Sql(SCRTY_SEL_USFJ_SBR,NM,JOB) FROM PS_GVT_IRR_CONTROL IRR , PS_GVT_JOB JOB , PS_NAMES NM , PSOPRDEFN OPR , PS_SJT_CLASS_ALL CLS WHERE ((CLS.SCRTY_SET_CD = 'PPLUSF' AND CLS.SCRTY_TYPE_CD = '016' AND CLS.CLASSID = OPR.ROWSECCLASS AND CLS.SCRTY_KEY1 = JOB.SETID_DEPT AND CLS.SCRTY_KEY2 = JOB.DEPTID ) OR (CLS.SCRTY_SET_CD = 'PPLJOB' AND CLS.SCRTY_TYPE_CD = '001' AND CLS.CLASSID = OPR.ROWSECCLASS AND CLS.SCRTY_KEY1 = JOB.SETID_DEPT AND CLS.SCRTY_KEY2 = JOB.DEPTID )) AND JOB.EMPLID=IRR.EMPLID AND JOB.EMPL_RCD =IRR.EMPL_RCD AND JOB.EFFDT = ( SELECT MAX(J1.EFFDT) FROM PS_GVT_JOB J1 WHERE J1.EMPLID=JOB.EMPLID AND J1.EMPL_RCD=JOB.EMPL_RCD AND J1.EFFDT <= %CurrentDateIn) AND JOB.EFFSEQ = ( SELECT MAX(J2.EFFSEQ) FROM PS_GVT_JOB J2 WHERE J2.EMPLID=JOB.EMPLID AND J2.EMPL_RCD=JOB.EMPL_RCD AND J2.EFFDT = JOB.EFFDT) AND IRR.EFFDT <= JOB.EFFDT AND IRR.EFFSEQ <= JOB.EFFSEQ AND JOB.EMPLID = NM.EMPLID AND NM.NAME_TYPE = 'PRI' AND NM.EFFDT = ( SELECT MAX(B.EFFDT) FROM PS_NAMES B WHERE B.EMPLID = NM.EMPLID AND B.NAME_TYPE = NM.NAME_TYPE AND B.EFFDT <= %CurrentDateIn )

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
2 ROWSECCLASS Character(30) VARCHAR2(30) NOT NULL The class used to determine row level security
3 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
4 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Rcd Nbr
5 NAME Character(50) VARCHAR2(50) NOT NULL Name
6 NAME_PSFORMAT Character(50) VARCHAR2(50) NOT NULL A Person's name in the Peoplesoft Format (basically LN,FN MI
7 LAST_NAME_SRCH Character(30) VARCHAR2(30) NOT NULL Last Name
8 SECOND_LAST_SRCH Character(30) VARCHAR2(30) NOT NULL Second Name
9 FIRST_NAME Character(30) VARCHAR2(30) NOT NULL First Name
10 LAST_NAME Character(30) VARCHAR2(30) NOT NULL Last Name
11 SECOND_LAST_NAME Character(30) VARCHAR2(30) NOT NULL Second Last Name
12 NAME_AC Character(50) VARCHAR2(50) NOT NULL Alternate Character Name
13 MIDDLE_NAME Character(30) VARCHAR2(30) NOT NULL MIDDLE_NAME
14 NAME_DISPLAY Character(50) VARCHAR2(50) NOT NULL Display Name - name formatted for Display based on the Country
15 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
16 SETID_DEPT Character(5) VARCHAR2(5) NOT NULL Department SetID

Prompt Table: SETID_TBL

17 DEPTID Character(10) VARCHAR2(10) NOT NULL Department

Prompt Table: PERS_DEPT_VW

18 SETID_LOCATION Character(5) VARCHAR2(5) NOT NULL Location SetID
19 LOCATION Character(10) VARCHAR2(10) NOT NULL Location Code
20 COMPANY Character(3) VARCHAR2(3) NOT NULL Company
21 REG_REGION Character(5) VARCHAR2(5) NOT NULL Regulatory Region
22 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
23 GVT_WIP_STATUS Character(3) VARCHAR2(3) NOT NULL Work-in-Progress Status

Prompt Table: GVT_WIP_STS_VW

24 GVT_STATUS_TYPE Character(3) VARCHAR2(3) NOT NULL Status Type
CAN=Cancelled
COM=Completed
COR=Corrected
IRR=IRR Reported
WIP=Work-in-progress
25 GVT_NOA_CODE Character(3) VARCHAR2(3) NOT NULL Nature of Action Code

Prompt Table: GVT_NOAC_TBL