FE_GVT_ADDR_VW(SQL View) |
Index Back |
---|---|
Address ViewAddress View to retrieve Home and Mailing addresses from PAR tables. |
SELECT A.EMPLID , A.COUNTRY , A.ADDRESS1 , A.ADDRESS2 , A.ADDRESS3 , A.ADDRESS4 , A.CITY , A.NUM1 , A.NUM2 , A.HOUSE_TYPE , A.ADDR_FIELD1 , A.ADDR_FIELD2 , A.ADDR_FIELD3 , A.COUNTY , A.STATE , A.POSTAL , A.GEO_CODE , A.IN_CITY_LIMIT , A.COUNTRY_OTHER , A.ADDRESS1_OTHER , A.ADDRESS2_OTHER , A.ADDRESS3_OTHER , A.ADDRESS4_OTHER , A.CITY_OTHER , A.COUNTY_OTHER , A.STATE_OTHER , A.POSTAL_OTHER , A.NUM1_OTHER , A.NUM2_OTHER , A.HOUSE_TYPE_OTHER , A.ADDR_FIELD1_OTHER , A.ADDR_FIELD2_OTHER , A.ADDR_FIELD3_OTHER , A.IN_CITY_LMT_OTHER , A.GEO_CODE_OTHER FROM PS_GVT_PERS_DATA A , PS_GVT_JOB B WHERE A.EMPLID = B.EMPLID AND A.EMPL_RCD = B.EMPL_RCD AND A.EMPL_RCD = 0 AND A.EFFDT = B.EFFDT AND A.EFFSEQ = B.EFFSEQ AND B.GVT_STATUS_TYPE IN ('COR', 'COM') AND B.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_GVT_JOB D WHERE D.EMPLID = B.EMPLID AND D.EMPL_RCD = B.EMPL_RCD AND D.EFFDT <= %CurrentDateIn AND D.GVT_STATUS_TYPE IN ('COR', 'COM')) AND B.EFFSEQ = ( SELECT MAX(C.EFFSEQ) FROM PS_GVT_JOB C WHERE C.EMPLID = B.EMPLID AND C.EMPL_RCD = B.EMPL_RCD AND C.EFFDT = B.EFFDT AND C.GVT_STATUS_TYPE IN ('COM', 'COR')) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
2 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL |
Country
Prompt Table: COUNTRY_TBL |
3 | ADDRESS1 | Character(55) | VARCHAR2(55) NOT NULL | Address 1 |
4 | ADDRESS2 | Character(55) | VARCHAR2(55) NOT NULL | Address 2 |
5 | ADDRESS3 | Character(55) | VARCHAR2(55) NOT NULL | Address 3 |
6 | ADDRESS4 | Character(55) | VARCHAR2(55) NOT NULL | Address 4 |
7 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
8 | NUM1 | Character(6) | VARCHAR2(6) NOT NULL | Number 1 |
9 | NUM2 | Character(6) | VARCHAR2(6) NOT NULL | Number 2 |
10 | HOUSE_TYPE | Character(2) | VARCHAR2(2) NOT NULL |
House Type
AB=House Boat Reference WW=House Trailer Reference |
11 | ADDR_FIELD1 | Character(2) | VARCHAR2(2) NOT NULL | Address Field 1 |
12 | ADDR_FIELD2 | Character(4) | VARCHAR2(4) NOT NULL | Address Field 2 |
13 | ADDR_FIELD3 | Character(4) | VARCHAR2(4) NOT NULL | Address Field 3 |
14 | COUNTY | Character(30) | VARCHAR2(30) NOT NULL | County |
15 | STATE | Character(6) | VARCHAR2(6) NOT NULL |
State
Prompt Table: STATE_TBL |
16 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
17 | GEO_CODE | Character(11) | VARCHAR2(11) NOT NULL | Geo Code |
18 | IN_CITY_LIMIT | Character(1) | VARCHAR2(1) NOT NULL |
In City Limit
Y/N Table Edit |
19 | COUNTRY_OTHER | Character(3) | VARCHAR2(3) NOT NULL |
Country field for ADDR_OTR_SBR and DERIVED_ADDR_OT
Prompt Table: COUNTRY_TBL |
20 | ADDRESS1_OTHER | Character(55) | VARCHAR2(55) NOT NULL | Address 1 Other |
21 | ADDRESS2_OTHER | Character(55) | VARCHAR2(55) NOT NULL | Address 2 Other |
22 | ADDRESS3_OTHER | Character(55) | VARCHAR2(55) NOT NULL | Address 3 Other |
23 | ADDRESS4_OTHER | Character(55) | VARCHAR2(55) NOT NULL | Address 4 Other |
24 | CITY_OTHER | Character(30) | VARCHAR2(30) NOT NULL | City Other |
25 | COUNTY_OTHER | Character(30) | VARCHAR2(30) NOT NULL | County Other |
26 | STATE_OTHER | Character(6) | VARCHAR2(6) NOT NULL |
State Other
Prompt Table: STATE_OTH |
27 | POSTAL_OTHER | Character(12) | VARCHAR2(12) NOT NULL | Postal Other |
28 | NUM1_OTHER | Character(6) | VARCHAR2(6) NOT NULL | Number 1 Other |
29 | NUM2_OTHER | Character(6) | VARCHAR2(6) NOT NULL | Number 2 Other |
30 | HOUSE_TYPE_OTHER | Character(2) | VARCHAR2(2) NOT NULL |
House Type Other
AB=House Boat Reference WW=House Trailer Reference |
31 | ADDR_FIELD1_OTHER | Character(2) | VARCHAR2(2) NOT NULL | Address Field 1 Other |
32 | ADDR_FIELD2_OTHER | Character(4) | VARCHAR2(4) NOT NULL | Address Field 2 Other |
33 | ADDR_FIELD3_OTHER | Character(4) | VARCHAR2(4) NOT NULL | Address Field 3 Other |
34 | IN_CITY_LMT_OTHER | Character(1) | VARCHAR2(1) NOT NULL |
In City Limit Other
Y/N Table Edit |
35 | GEO_CODE_OTHER | Character(11) | VARCHAR2(11) NOT NULL | Geo Code Other |