FS_GIS_WO_WW(SQL View) |
Index Back |
---|---|
GIS task viewGIS task view FS_GIS_TASK_VW depends on this view Oracle does not support subquery in outer join |
SELECT A.BUSINESS_UNIT , A.WO_ID , S.SETID , B.LOCATION , B.EFFDT , B.ADDRESS1 , B.ADDRESS2 , B.ADDRESS3 , B.ADDRESS4 , B.CITY , B.STATE , B.POSTAL , B.COUNTRY , D.COUNTRY_2CHAR , C.LONGITUDE , C.LATITUDE FROM PS_WM_WO_HDR A LEFT OUTER JOIN PS_SET_CNTRL_REC S ON A.BUSINESS_UNIT_AM = S.SETCNTRLVALUE AND S.REC_GROUP_ID = 'FS_26' AND S.RECNAME ='LOCATION_TBL' LEFT OUTER JOIN PS_LOCATION_TBL B ON B.SETID = S.SETID AND B.LOCATION = A.LOCATION LEFT OUTER JOIN PS_AM_LOCATION_TBL C ON C.SETID = B.SETID AND C.LOCATION = B.LOCATION AND C.EFFDT = B.EFFDT LEFT OUTER JOIN PS_COUNTRY_TBL D ON B.COUNTRY = D.COUNTRY |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | WO_ID | Character(10) | VARCHAR2(10) NOT NULL | Work Order Identification |
3 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
4 | LOCATION | Character(10) | VARCHAR2(10) NOT NULL | Location Code |
5 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |
6 | ADDRESS1 | Character(55) | VARCHAR2(55) NOT NULL | Address 1 |
7 | ADDRESS2 | Character(55) | VARCHAR2(55) NOT NULL | Address 2 |
8 | ADDRESS3 | Character(55) | VARCHAR2(55) NOT NULL | Address 3 |
9 | ADDRESS4 | Character(55) | VARCHAR2(55) NOT NULL | Address 4 |
10 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
11 | STATE | Character(6) | VARCHAR2(6) NOT NULL | State |
12 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
13 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL | Country |
14 | COUNTRY_2CHAR | Character(2) | VARCHAR2(2) NOT NULL | 2-Char Country Code |
15 | LONGITUDE | Signed Number(12,7) | DECIMAL(10,7) NOT NULL | Longitude |
16 | LATITUDE | Signed Number(12,7) | DECIMAL(10,7) NOT NULL | Latitude |