BI_TMP_SRCH4_VW(SQL View) |
Index Back |
---|---|
Temp bill srch VW - Contract |
SELECT DISTINCT business_unit , contract_num FROM PS_BI_HDR WHERE (bill_status = 'TMP' OR bill_status = 'TMR') AND process_instance = 0 AND CONTRACT_NUM <> ' ' AND (PC_DISTRIB_STATUS <> 'I' OR (PC_DISTRIB_STATUS = 'I' AND EXISTS ( SELECT 'X' FROM PS_BI_WRKSHT_STG STG WHERE PS_BI_HDR.BUSINESS_UNIT = STG.BUSINESS_UNIT AND PS_BI_HDR.INVOICE = STG.INVOICE AND STG.WRKSHT_STATUS IN ('0', '8')))) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | CONTRACT_NUM | Character(25) | VARCHAR2(25) NOT NULL | Contract |