WM_SHOPCREW_LVW(SQL View) |
Index Back |
---|---|
Crew by Shop View |
SELECT BUSINESS_UNIT , SHOP_ID , CREW_ID , LANGUAGE_CD , DESCR FROM PS_WM_CREW_DEFN_LG WHERE EXISTS ( SELECT 'X' FROM PS_WM_CREW_HDR B WHERE PS_WM_CREW_DEFN_LG.BUSINESS_UNIT = B.BUSINESS_UNIT AND PS_WM_CREW_DEFN_LG.SHOP_ID = B.SHOP_ID AND PS_WM_CREW_DEFN_LG.CREW_ID = B.CREW_ID AND B.EFF_STATUS = 'A' AND B.EFFDT = ( SELECT MAX(C.EFFDT) FROM PS_WM_CREW_HDR C WHERE C.BUSINESS_UNIT = B.BUSINESS_UNIT AND C.SHOP_ID = B.SHOP_ID AND C.CREW_ID = B.CREW_ID AND C.EFFDT <= %CurrentDateIn )) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | CREW_BU | Character(5) | VARCHAR2(5) NOT NULL |
Crew Business Unit
Prompt Table: SP_BU_WM_NONVW |
2 | CREW_SHOP | Character(10) | VARCHAR2(10) NOT NULL |
Crew Shop ID
Prompt Table: WM_SHOP_DEFN |
3 | CREW_ID | Character(10) | VARCHAR2(10) NOT NULL | Crew Name |
4 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |
5 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |