SCR_CNT_PHN_VW

(SQL View)
Index Back

Supplier Contact Telephone Nbr

Supplier Contact Telephone Nbrs

SELECT P.SETID , P.VENDOR_ID , P.CNTCT_SEQ_NUM , P.PHONE_TYPE , P.COUNTRY_CODE , P.PHONE , P.EXTENSION , P.EFFDT , P.EFFDT , P.PHONE_TYPE , P.COUNTRY_CODE , P.PHONE , P.EXTENSION , CASE WHEN P.COUNTRY_CODE = ' ' THEN P.PHONE ELSE P.COUNTRY_CODE %Concat '-' %Concat P.PHONE END , 'N' FROM PS_VNDR_CNTCT_PHN P , PS_SCR_CNT_SCR_VW S WHERE EFFDT = ( SELECT MAX(Z.EFFDT) FROM PS_VENDOR_CNTCT Z WHERE P.SETID = Z.SETID AND P.VENDOR_ID = Z.VENDOR_ID AND P.CNTCT_SEQ_NUM = Z.CNTCT_SEQ_NUM AND Z.EFFDT <=%CurrentDateIn) AND P.SETID = S.SETID AND P.VENDOR_ID = S.VENDOR_ID AND P.CNTCT_SEQ_NUM = S.CNTCT_SEQ_NUM

  • Parent record: VENDOR_CNTCT
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
    2 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
    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 COUNTRY_CODE Character(3) VARCHAR2(3) NOT NULL Int'l Prefix
    6 PHONE Character(24) VARCHAR2(24) NOT NULL Telephone
    7 EXTENSION Character(6) VARCHAR2(6) NOT NULL Phone Extension
    8 SCR_EFFDT Date(10) DATE Approved Changes Take Effect
    9 EFFDT Date(10) DATE Effective Date

    Default Value: %date

    10 SCR_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
    11 SCR_COUNTRY_CODE Character(3) VARCHAR2(3) NOT NULL Int'l Prefix
    12 SCR_PHONE Character(24) VARCHAR2(24) NOT NULL Telephone
    13 SCR_EXTENSION Character(6) VARCHAR2(6) NOT NULL Phone Extension
    14 DESCR30 Character(30) VARCHAR2(30) NOT NULL Description
    15 SCR_REMOVE Character(1) VARCHAR2(1) NOT NULL Remove Contact

    Y/N Table Edit