WM_SHOPCREW_VW(SQL View) |
Index Back |
---|---|
Crew by Shop View |
SELECT BUSINESS_UNIT , SHOP_ID , CREW_ID , DESCR , PRIMARY_CREW_FLG FROM PS_WM_CREW_DEFN WHERE EXISTS ( SELECT 'X' FROM PS_WM_CREW_HDR B WHERE PS_WM_CREW_DEFN.BUSINESS_UNIT = B.BUSINESS_UNIT AND PS_WM_CREW_DEFN.SHOP_ID = B.SHOP_ID AND PS_WM_CREW_DEFN.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 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
5 | PRIMARY_CREW_FLG | Character(1) | VARCHAR2(1) NOT NULL |
Primary Crew
Y/N Table Edit |