GPTH_SI_BRANVW1(SQL View) |
Index Back |
---|---|
Get Branch SSO Area/ProvinceGPTH_SI_ BRANVW1 is used to get Branch SSO Area/Province. |
SELECT A.EFFDT , A.COMPANY , A.GPTH_SI_BRANCH_NO , A.GPTH_SI_BRANCH_NM , A.GPTH_SI_BRANCH_AP , G.PROCESS_INSTANCE , G.EMPLID FROM PS_GPTH_SI_BRANCH A ,PS_GPTH_RPT_G_TMP G WHERE A.COMPANY=G.COMPANY AND A.GPTH_SI_BRANCH_NO=G.GPTH_SI_BRANCH_NO AND A.EFFDT = ( SELECT MAX(A_ED.EFFDT) FROM PS_GPTH_SI_BRANCH A_ED WHERE A.COMPANY = A_ED.COMPANY AND A_ED.EFFDT <= G.PRD_END_DT) AND G.PRC_ORD_TS=( SELECT MAX(G_ED.PRC_ORD_TS) FROM PS_GPTH_RPT_G_TMP G_ED WHERE G.PROCESS_INSTANCE=G_ED.PROCESS_INSTANCE AND G.EMPLID=G_ED.EMPLID AND G.EMPL_RCD=G_ED.EMPL_RCD) GROUP BY A.EFFDT , A.COMPANY , A.GPTH_SI_BRANCH_NO , A.GPTH_SI_BRANCH_NM , A.GPTH_SI_BRANCH_AP , G.PROCESS_INSTANCE , G.EMPLID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |
2 | COMPANY | Character(3) | VARCHAR2(3) NOT NULL | Company |
3 | GPTH_SI_BRANCH_NO | Character(6) | VARCHAR2(6) NOT NULL | Social Security Branch Number |
4 | GPTH_SI_BRANCH_NM | Character(50) | VARCHAR2(50) NOT NULL | Social Security Branch Name |
5 | GPTH_SI_BRANCH_AP | Character(40) | VARCHAR2(40) NOT NULL | This field will be used to store social security area/province information. |
6 | PROCESS_INSTANCE | Number(10,0) | DECIMAL(10) NOT NULL | Process Instance |
7 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |