AR_CUST_AL2_LVW(SQL View) |
Index Back |
---|---|
AR All CustomersActive or Inactive Status Customers |
SELECT DISTINCT C.SETID , C.CUST_ID , D.LANGUAGE_CD , A.CITY , D.NAME1 , B.CR_ANALYST , B.COLLECTOR , A.STATE FROM PS_CUSTOMER C , PS_CUST_OPTION B , PS_CUST_ADDRESS A , PS_CUSTOMER_LANG D WHERE C.CUST_STATUS = 'A' AND C.SETID = B.SETID AND C.CUST_ID = B.CUST_ID AND C.SETID = D.SETID AND C.CUST_ID = D.CUST_ID AND %EffdtCheck(CUST_OPTION, B, %CURRENTDATEIN) AND B.EFF_STATUS='A' AND C.SETID = A.SETID AND C.CUST_ID = A.CUST_ID AND %EffdtCheck(CUST_ADDRESS, A, %CURRENTDATEIN) AND A.EFF_STATUS='A' |
# | 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 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |
4 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
5 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |
6 | CR_ANALYST | Character(8) | VARCHAR2(8) NOT NULL | Specifies the personnel code for the person who works with a customer to establish credit limits and payment terms. This field is required for a bill-to customer. |
7 | COLLECTOR | Character(8) | VARCHAR2(8) NOT NULL | Specifies the personnel code for the person who works with a customer to collect overdue payments. |
8 | STATE | Character(6) | VARCHAR2(6) NOT NULL | State |