GP_WC_BANK

(SQL View)
Index Back

GP WC Incomplete Banking

GP WC Incomplete Banking

SELECT A.EMPLID , D.FIRST_NAME , D.LAST_NAME , A.EMPL_RCD ,E.HIRE_DT , E.TERMINATION_DT , E.COMPANY , E.BUSINESS_UNIT , E.DEPTNAME , E.ESTABID , E.LOCATION_DESCR , E.JOBCODE , E.JOBCODE_DESCR , E14X.XLATLONGNAME , E15X.XLATLONGNAME , E.GP_PAYGROUP , E.EMPL_CLASS , E.CONTRACT_TYPE , E.MONTHLY_RT , E.FTE , F.COUNTRY_CD , F.INTL_BANK_ACCT_NBR , F.BANK_CD , F.BRANCH_EC_CD , F.ACCOUNT_EC_ID , F.CHECK_DIGIT , F.ACCOUNT_NAME , F.CURRENCY_CD , F.ACCOUNT_NAME_AC , A.CAL_ID , A.CAL_RUN_ID , E.CONTRACT_NUM FROM ((PS_GP_PYE_PRC_STAT A ) LEFT OUTER JOIN PS_PYE_BANKACCT F ON A.EMPLID = F.EMPLID AND F.EFF_STATUS <> 'I' ) , PS_PERSON_NAME D , PS_GP_JB_DESCR_VW E LEFT OUTER JOIN ( SELECT * FROM PSXLATITEM TA WHERE TA.FIELDNAME='HR_STATUS' AND TA.EFF_STATUS = 'A' AND TA.EFFDT = ( SELECT MAX(EFFDT) FROM PSXLATITEM TB WHERE TB.FIELDNAME='HR_STATUS' AND TA.FIELDVALUE=TB.FIELDVALUE AND TB.EFF_STATUS = 'A' AND TB.EFFDT <= %CurrentDateIn )) E14X ON E14X.FIELDVALUE = E.HR_STATUS AND E14X.FIELDNAME='HR_STATUS' LEFT OUTER JOIN ( SELECT * FROM PSXLATITEM TA WHERE TA.FIELDNAME='EMPL_STATUS' AND TA.EFF_STATUS = 'A' AND TA.EFFDT = ( SELECT MAX(EFFDT) FROM PSXLATITEM TB WHERE TB.FIELDNAME='EMPL_STATUS' AND TA.FIELDVALUE=TB.FIELDVALUE AND TB.EFF_STATUS = 'A' AND TB.EFFDT <= %CurrentDateIn)) E15X ON E15X.FIELDVALUE = E.EMPL_STATUS AND E15X.FIELDNAME='EMPL_STATUS' , PS_GP_PYE_SEG_STAT H WHERE ( ( NOT EXISTS ( SELECT B.EMPLID FROM PS_GP_NET_DIST_DTL B , PS_GP_PYE_SEG_STAT C WHERE ( B.EFFDT = ( SELECT MAX(B_ED.EFFDT) FROM PS_GP_NET_DIST_DTL B_ED WHERE B.EMPLID = B_ED.EMPLID AND B.EMPL_RCD = B_ED.EMPL_RCD AND B.RUN_TYPE = B_ED.RUN_TYPE AND B_ED.EFFDT <= C.SEG_END_DT) AND B.EMPLID = C.EMPLID AND B.EMPL_RCD = C.EMPL_RCD AND B.EMPLID = A.EMPLID AND B.EMPL_RCD = A.EMPL_RCD AND C.CAL_RUN_ID = A.CAL_RUN_ID AND A.GP_PAYGROUP = C.GP_PAYGROUP AND A.CAL_ID = C.CAL_ID )) AND A.EMPLID = D.EMPLID AND A.EMPLID = E.EMPLID AND A.EMPL_RCD = E.EMPL_RCD AND E.EFFDT = ( SELECT MAX(E_ED.EFFDT) FROM PS_GP_JB_DESCR_VW E_ED WHERE E.EMPLID = E_ED.EMPLID AND E.EMPL_RCD = E_ED.EMPL_RCD AND E_ED.EFFDT <= H.SEG_END_DT+1) AND E.EFFSEQ = ( SELECT MAX(E_ES.EFFSEQ) FROM PS_GP_JB_DESCR_VW E_ES WHERE E.EMPLID = E_ES.EMPLID AND E.EMPL_RCD = E_ES.EMPL_RCD AND E.EFFDT = E_ES.EFFDT) AND A.CALC_TYPE = 'P' AND A.GP_PAYGROUP = E.GP_PAYGROUP AND EXISTS ( SELECT G.GP_PAYGROUP FROM PS_GP_WC_USR_PYGRP G WHERE ( G.GP_PAYGROUP = A.GP_PAYGROUP )) AND A.CAL_RUN_ID = A.ORIG_CAL_RUN_ID AND A.PRD_TYPE = 'C' AND A.EMPLID = H.EMPLID AND A.CAL_RUN_ID = H.CAL_RUN_ID AND A.EMPL_RCD = H.EMPL_RCD AND A.GP_PAYGROUP = H.GP_PAYGROUP AND A.CAL_ID = H.CAL_ID AND A.ORIG_CAL_RUN_ID = H.ORIG_CAL_RUN_ID ))

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 FIRST_NAME Character(30) VARCHAR2(30) NOT NULL First Name
3 LAST_NAME Character(30) VARCHAR2(30) NOT NULL Last Name
4 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Record
5 HIRE_DT Date(10) DATE First Start Date
6 TERMINATION_DT Date(10) DATE Termination Date
7 COMPANY Character(3) VARCHAR2(3) NOT NULL Company
8 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
9 DEPTNAME Character(30) VARCHAR2(30) NOT NULL Department Name
10 ESTABID Character(12) VARCHAR2(12) NOT NULL Establishment ID
11 LOCATION_DESCR Character(30) VARCHAR2(30) NOT NULL Location Description
12 JOBCODE Character(6) VARCHAR2(6) NOT NULL Job Code
13 JOBCODE_DESCR Character(30) VARCHAR2(30) NOT NULL Job Code Description
14 HR_STATUS_DESCR Character(30) VARCHAR2(30) NOT NULL HR Status
15 EMPL_STATUS_DESCR Character(30) VARCHAR2(30) NOT NULL Employee Status
16 GP_PAYGROUP Character(10) VARCHAR2(10) NOT NULL Global Payroll pay group
17 EMPL_CLASS Character(3) VARCHAR2(3) NOT NULL Employee Classification
18 CONTRACT_TYPE Character(3) VARCHAR2(3) NOT NULL Contract Type
19 MONTHLY_RT Number(19,3) DECIMAL(18,3) NOT NULL Monthly Rate
20 FTE Number(8,6) DECIMAL(7,6) NOT NULL This field represent Full Time Equivalence
21 COUNTRY_CD Character(3) VARCHAR2(3) NOT NULL Country Code
22 INTL_BANK_ACCT_NBR Character(34) VARCHAR2(34) NOT NULL IBAN International Bank Account Number
23 BANK_CD Character(11) VARCHAR2(11) NOT NULL Bank ID
24 BRANCH_EC_CD Character(17) VARCHAR2(17) NOT NULL Bank Branch ID
25 ACCOUNT_EC_ID Character(35) VARCHAR2(35) NOT NULL Account Number used in banking.
26 CHECK_DIGIT Character(2) VARCHAR2(2) NOT NULL Check Digit
27 ACCOUNT_NAME Character(50) VARCHAR2(50) NOT NULL Account Name
28 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
29 ACCOUNT_NAME_AC Character(40) VARCHAR2(40) NOT NULL This field stores the account name in an alternate character format
30 CAL_ID Character(18) VARCHAR2(18) NOT NULL calendar id
31 CAL_RUN_ID Character(18) VARCHAR2(18) NOT NULL Calendar Run Id
32 CONTRACT_NUM Character(25) VARCHAR2(25) NOT NULL Contract Number