CONT_ORDR_VW(SQL View) |
Index Back |
---|---|
Customer with valid contacts |
SELECT DISTINCT B.CUSTOMER_SETID ,B.CUST_ID , A.NAME1 , A.CONTACT_ID ,A.TITLE FROM PS_CONTACT A , PS_CONTACT_CUST B WHERE A.SETID = B.SETID AND A.CONTACT_ID = B.CONTACT_ID AND A.EFFDT = ( SELECT MAX(C.EFFDT) FROM PS_CONTACT C WHERE A.CONTACT_ID = C.CONTACT_ID AND A.SETID = C.SETID AND C.EFFDT <= %CurrentDateIn) AND A.EFFDT = B.EFFDT |
# | 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 | CONTACT_ID | Character(15) | VARCHAR2(15) NOT NULL | Contact Identifier for Treasury Contacts |
5 | TITLE | Character(35) | VARCHAR2(35) NOT NULL | Title |