ACT_CUST1_VW(SQL View) |
Index Back |
---|---|
Customer View |
SELECT C.SETID , C.CUST_ID , A.NAME1 , C.CITY , C.STATE , C.COUNTRY , D.RISK_SCORE FROM PS_CUSTOMER A , PS_CUST_ADDR_SEQ B , PS_CUST_ADDRESS C , PS_CUST_CREDIT D WHERE A.SETID = B.SETID AND A.CUST_ID = B.CUST_ID AND A.CUST_STATUS IN ('A', 'I') AND B.SETID = C.SETID AND B.CUST_ID = C.CUST_ID AND B.ADDRESS_SEQ_NUM = C.ADDRESS_SEQ_NUM AND B.ADDRESS_SEQ_NUM = A.ADDRESS_SEQ_NUM AND B.BILL_TO_ADDR = 'Y' AND C.EFFDT = ( SELECT MAX(C_ED.EFFDT) FROM PS_CUST_ADDRESS C_ED WHERE C.SETID = C_ED.SETID AND C.CUST_ID = C_ED.CUST_ID AND C.ADDRESS_SEQ_NUM = C_ED.ADDRESS_SEQ_NUM AND C_ED.EFFDT <= %CurrentDateIn) AND C.SETID = D.SETID AND C.CUST_ID = D.CUST_ID AND %EffdtCheck(CUST_CREDIT DD, D, %CurrentDateIn) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations. |
3 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |
4 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
5 | STATE | Character(6) | VARCHAR2(6) NOT NULL | State |
6 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL | Country |
7 | RISK_SCORE | Number(3,0) | SMALLINT NOT NULL | Risk Score used in Receivables Collections Workbench |