FO_RECNT_CL_VW4(SQL View) |
Index Back |
---|---|
Most Recent Phone Call Report |
SELECT A.CUSTOMER_SETID ,A.CUST_ID ,A.CONTACT_SETID ,A.CONTACT_ID ,A.OPRID ,MAX(A.ACTUAL_END_DATE) FROM PS_FO_HISTORY A WHERE A.CONTACT_METHOD = 'C' AND A.ACTUAL_END_DATE = ( SELECT MAX (C.ACTUAL_END_DATE) FROM PS_FO_HISTORY C WHERE A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.OPRID = C.OPRID AND A.FO_DATE = C.FO_DATE AND A.HISTORY_ID = C.HISTORY_ID AND C.ACTUAL_END_DATE <=%CurrentDateTimeIn) GROUP BY A.CUSTOMER_SETID, A.CUST_ID, A.CONTACT_SETID, A.CONTACT_ID, A.OPRID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | CUSTOMER_SETID | Character(5) | VARCHAR2(5) NOT NULL | Customer 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 | CONTACT_SETID | Character(5) | VARCHAR2(5) NOT NULL | Contact SetID |
4 | CONTACT_ID | Character(15) | VARCHAR2(15) NOT NULL | Contact Identifier for Treasury Contacts |
5 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |
6 | ACTUAL_END_DATE | DateTime(26) | TIMESTAMP | Actual End Date Time |