IN_WM_SHPL_VWLN(SQL View) |
Index Back |
---|---|
Shop Location ViewShop Location View |
SELECT B.BUSINESS_UNIT , B.SHOP_ID , A.LANGUAGE_CD , A.DESCR , B.LOCATION , D.CITY , D.COUNTY , D.STATE , D.POSTAL , D.COUNTRY , D.BUILDING , D.FLOOR , D.SECTOR FROM PS_WM_SHOP_DEFN_LG A , PS_WM_SHOP_HDR B , PS_LOCATION_TBL D , PS_SET_CNTRL_REC E WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.SHOP_ID = B.SHOP_ID AND B.EFF_STATUS='A' AND B.EFFDT = ( SELECT MAX(B1.EFFDT) FROM PS_WM_SHOP_HDR B1 WHERE B1.BUSINESS_UNIT = B.BUSINESS_UNIT AND B1.SHOP_ID = B.SHOP_ID AND B1.EFFDT <= %CurrentDateIn) AND E.SETCNTRLVALUE = A.BUSINESS_UNIT AND E.RECNAME = 'LOCATION_TBL' AND D.SETID = E.SETID AND D.LOCATION = B.LOCATION AND D.EFFDT = ( SELECT MAX(D1.EFFDT) FROM PS_LOCATION_TBL D1 WHERE D1.SETID = D.SETID AND D1.LOCATION = D.LOCATION AND D1.EFFDT <= %CurrentDateIn) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SL_SOURCE_BUS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Source Business Unit selection |
2 | SHOP_ID | Character(10) | VARCHAR2(10) NOT NULL | Shop Identification |
3 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |
4 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
5 | LOCATION | Character(10) | VARCHAR2(10) NOT NULL | Location Code |
6 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
7 | COUNTY | Character(30) | VARCHAR2(30) NOT NULL | County |
8 | STATE | Character(6) | VARCHAR2(6) NOT NULL | State |
9 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
10 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL | Country |
11 | BUILDING | Character(10) | VARCHAR2(10) NOT NULL | Building # |
12 | FLOOR | Character(10) | VARCHAR2(10) NOT NULL | Floor # |
13 | SECTOR | Character(10) | VARCHAR2(10) NOT NULL | Sector |