RSF_SITE_PHN_VW

(SQL View)
Index Back

Site Phone

Site to phone number as a view

SELECT A.SETID , A.SITE_ID , C.CM_ID , B.BO_ID , B.PROFILE_CM_SEQ , B.CM_TYPE_ID , B.CM_PURPOSE_TYPE_ID , D.DESCRSHORT , C.COUNTRY_CODE , C.PHONE , C.EXTENSION FROM PS_RD_SITE A ,PS_BO_CM B , PS_CM C ,PS_CM_PURP_TYPE D WHERE A.BO_ID = B.BO_ID AND B.CM_ID = C.CM_ID AND B.CM_TYPE_ID = C.CM_TYPE_ID AND C.CM_TYPE_ID = 2 AND B.CM_PURPOSE_TYPE_ID IN (11, 14) AND B.CM_PURPOSE_TYPE_ID = D.CM_PURPOSE_TYPE_ID AND B.BO_CM_START_DT <= %CurrentDateIn AND B.BO_CM_END_DT > %CurrentDateIn

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL This field is used to store the value of SetID on various setup tables.
2 SITE_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 CM_ID Number(31,0) DECIMAL(31) NOT NULL Contact Method ID
4 BO_ID Signed Number(32,0) DECIMAL(31) NOT NULL Business Object ID
5 PROFILE_CM_SEQ Number(31,0) DECIMAL(31) NOT NULL The Contact Method Profile ID is a key field that is used to reference the details of a Contact Method in various CM tables.
6 CM_TYPE_ID Number(6,0) INTEGER NOT NULL Contact Method Type ID
7 CM_PURPOSE_TYPE_ID Number(6,0) INTEGER NOT NULL Relationship Contact Method Purpose ID
8 DESCR Character(30) VARCHAR2(30) NOT NULL Description
9 COUNTRY_CODE Character(3) VARCHAR2(3) NOT NULL This field stores the Country Code values.
10 PHONE Character(24) VARCHAR2(24) NOT NULL This field stores the Telephone number.
11 EXTENSION Character(6) VARCHAR2(6) NOT NULL This field stores the Phone extension.