IN_WM_SHPLOC_VW

(SQL View)
Index Back

Shop Location View

Shop Location View

SELECT B.BUSINESS_UNIT , B.SHOP_ID , 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 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 DESCR Character(30) VARCHAR2(30) NOT NULL Description
4 LOCATION Character(10) VARCHAR2(10) NOT NULL Location Code
5 CITY Character(30) VARCHAR2(30) NOT NULL City
6 COUNTY Character(30) VARCHAR2(30) NOT NULL County
7 STATE Character(6) VARCHAR2(6) NOT NULL State
8 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal
9 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country
10 BUILDING Character(10) VARCHAR2(10) NOT NULL Building #
11 FLOOR Character(10) VARCHAR2(10) NOT NULL Floor #
12 SECTOR Character(10) VARCHAR2(10) NOT NULL Sector