SF_PURG3_PID_VW(SQL View) |
Index Back |
---|---|
Prdn IDs PID Purge Sel View03/18/03 PWF MG Archive Record |
SELECT DISTINCT AB.BUSINESS_UNIT , AB.INV_ITEM_ID , AC.DESCR FROM PS_SF_PRDNID_HEADR AB , PS_MASTER_ITEM_TBL AC , PS_SET_CNTRL_REC AD WHERE AB.MA_PRDN_ID_FLG = 'Y' AND AD.RECNAME = 'MASTER_ITEM_TBL' AND AD.SETCNTRLVALUE = AB.BUSINESS_UNIT AND AC.SETID=AD.SETID AND AC.INV_ITEM_ID=AB.INV_ITEM_ID AND PROD_STATUS IN ('70','90') AND NOT EXISTS ( SELECT 'X' FROM PS_SF_EARNCONCOSTB A WHERE A.PRODUCTION_ID = AB.PRODUCTION_ID AND A.BUSINESS_UNIT = AB.BUSINESS_UNIT AND A.POSTED_FLAG='N') AND NOT EXISTS ( SELECT 'X' FROM PS_SF_EARNCONCOST B WHERE B.PRODUCTION_ID = AB.PRODUCTION_ID AND B.BUSINESS_UNIT = AB.BUSINESS_UNIT AND B.POSTED_FLAG='N') AND NOT EXISTS ( SELECT 'X' FROM PS_SF_SCRAPCOSTB C WHERE C.PRODUCTION_ID = AB.PRODUCTION_ID AND C.BUSINESS_UNIT = AB.BUSINESS_UNIT AND C.POSTED_FLAG='N') AND NOT EXISTS ( SELECT 'X' FROM PS_SF_SCRAPCOST D WHERE D.PRODUCTION_ID = AB.PRODUCTION_ID AND D.BUSINESS_UNIT = AB.BUSINESS_UNIT AND D.POSTED_FLAG='N') AND NOT EXISTS ( SELECT 'X' FROM PS_SF_VARIANCES E WHERE E.PRODUCTION_ID = AB.PRODUCTION_ID AND E.BUSINESS_UNIT = AB.BUSINESS_UNIT AND E.POSTED_FLAG='N') AND NOT EXISTS ( SELECT 'X' FROM PS_SF_VARIANCESB F WHERE F.PRODUCTION_ID = AB.PRODUCTION_ID AND F.BUSINESS_UNIT = AB.BUSINESS_UNIT AND F.POSTED_FLAG='N') |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Prompt Table: BUS_UNIT_TBL_MG |
2 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL |
Item ID
Prompt Table: MASTER_ITEM_TBL |
3 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |