ARCUST_PHNE_VW

(SQL View)
Index Back

Contact Phone Numbers


SELECT A.SETID , A.CUST_ID , A.CNTCT_SEQ_NUM , B.PHONE_TYPE , C.SETID , C.CONTACT_ID , A.NAME1 , B.PHONE , B.EXTENSION FROM PS_CUST_CONTACT A , PS_CUST_CNTCT_PHN B , PS_CONTACT_CUST C WHERE A.SETID = B.SETID (+) AND A.CUST_ID = B.CUST_ID (+) AND A.CNTCT_SEQ_NUM = B.CNTCT_SEQ_NUM (+) AND A.EFFDT = B.EFFDT (+) AND A.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_CUST_CONTACT D WHERE D.SETID=A.SETID AND D.CUST_ID=A.CUST_ID AND D.CNTCT_SEQ_NUM=A.CNTCT_SEQ_NUM AND D.EFFDT <= %CurrentDateIn) AND A.EFF_STATUS='A' AND C.CUSTOMER_SETID = A.SETID AND C.CUST_ID = A.CUST_ID AND C.CNTCT_SEQ_NUM = A.CNTCT_SEQ_NUM AND C.EFFDT = A.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 CNTCT_SEQ_NUM Number(5,0) INTEGER NOT NULL Contact Sequence Number
4 PHONE_TYPE Character(4) VARCHAR2(4) NOT NULL Phone Type
BUSN=Business Phone
CAMP=Campus Phone
CELL=Cellular Phone
DORM=Dormitory Phone
FAX=FAX
HOME=Home Phone
MAIN=Main
OTR=Other
PGR1=Pager 1
PGR2=Pager 2
TELX=Telex
5 CONTACT_SETID Character(5) VARCHAR2(5) NOT NULL Contact SetID
6 CONTACT_ID Character(15) VARCHAR2(15) NOT NULL Contact Identifier for Treasury Contacts
7 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
8 PHONE Character(24) VARCHAR2(24) NOT NULL Telephone
9 EXTENSION Character(6) VARCHAR2(6) NOT NULL Phone Extension