WM_SHOP_LOC_LG(SQL View) |
Index Back |
---|
SELECT C.SRVC_GRP_ID , B.BUSINESS_UNIT , B.SHOP_ID , F.LANGUAGE_CD , F.DESCR , B.LOCATION , D.CITY , D.COUNTY , D.STATE , D.POSTAL , D.COUNTRY , D.BUILDING , D.FLOOR , D.SECTOR FROM PS_WM_SHOP_DEFN A , PS_WM_SHOP_HDR B , PS_WM_SHOP_SRVCGRP C , PS_LOCATION_TBL D , PS_SET_CNTRL_REC E , PS_WM_SHOP_DEFN_LG F 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 C.BUSINESS_UNIT = A.BUSINESS_UNIT AND C.SHOP_ID = A.SHOP_ID AND E.SETCNTRLVALUE = A.BUSINESS_UNIT AND E.REC_GROUP_ID = 'FS_26' 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) AND F.BUSINESS_UNIT = B.BUSINESS_UNIT AND F.SHOP_ID = B.SHOP_ID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SRVC_GRP_ID | Character(10) | VARCHAR2(10) NOT NULL | Service Group |
2 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
3 | SHOP_ID | Character(10) | VARCHAR2(10) NOT NULL | Shop Identification |
4 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |
5 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
6 | LOCATION | Character(10) | VARCHAR2(10) NOT NULL | Location Code |
7 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
8 | COUNTY | Character(30) | VARCHAR2(30) NOT NULL | County |
9 | STATE | Character(6) | VARCHAR2(6) NOT NULL | State |
10 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
11 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL | Country |
12 | BUILDING | Character(10) | VARCHAR2(10) NOT NULL | Building # |
13 | FLOOR | Character(10) | VARCHAR2(10) NOT NULL | Floor # |
14 | SECTOR | Character(10) | VARCHAR2(10) NOT NULL | Sector |