OM_CST_EMAIL_VW

(SQL View)
Index Back

Customer -> Email

Based on Contact setup.

SELECT A.SETID , A.CUST_ID , C.EMAILID , B.CNTCT_SEQ_NUM , A.CNTCT_SEQ_NUM , A.CNTCT_SEQ_SHIP , A.CNTCT_SEQ_SOLD FROM PS_CUSTOMER A , PS_CONTACT_CUST B , PS_CONTACT C WHERE A.SETID = B.CUSTOMER_SETID AND A.CUST_ID = B.CUST_ID AND B.SETID = C.SETID AND B.CONTACT_ID = C.CONTACT_ID AND A.CUST_STATUS IN ('A','I') AND %EffdtCheck(contact,C,%CurrentDateIn) AND C.EFF_STATUS = 'A' AND (A.CNTCT_SEQ_NUM = B.CNTCT_SEQ_NUM OR A.CNTCT_SEQ_SHIP = B.CNTCT_SEQ_NUM OR A.CNTCT_SEQ_SOLD = B.CNTCT_SEQ_NUM)

# 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 EMAILID Character(70) VARCHAR2(70) NOT NULL A user's E-mail address
4 CNTCT_SEQ_NUM Number(5,0) INTEGER NOT NULL Contact Sequence Number
5 CNTCT_SEQ_BILL Number(5,0) INTEGER NOT NULL Contact Sequence - Bill To
6 CNTCT_SEQ_SHIP Number(5,0) INTEGER NOT NULL Primary Contact - Ship To
7 CNTCT_SEQ_SOLD Number(5,0) INTEGER NOT NULL Primary Contact - Sold To