AR_CUS_ACTVT_VW(SQL View) |
Index Back |
---|---|
Customer Last Activity View |
SELECT C.SETID ,I.CUST_ID ,MAX(I.LAST_ACTIVITY_DT) FROM PS_ITEM I ,PS_CUSTOMER C WHERE C.CUST_ID=I.CUST_ID AND C.SETID=( SELECT SETID FROM PS_SET_CNTRL_REC WHERE SETCNTRLVALUE = I.BUSINESS_UNIT AND RECNAME = 'CUSTOMER') AND C.CUST_STATUS='A' GROUP BY C.SETID,I.CUST_ID |
# | 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 | LAST_ACTIVITY_DT | Date(10) | DATE | Last Activity Date |