RE_VEN_CNTC_PHN(SQL View) |
Index Back |
---|---|
Supplier Contact TelephoneThis view selects the currently active business telephone number for each supplier contact. |
SELECT A.SETID , A.VENDOR_ID , A.CNTCT_SEQ_NUM , A.PHONE_TYPE , A.COUNTRY_CODE , A.PHONE , '' AS FAX , A.EXTENSION , A.EFFDT FROM PS_VNDR_CNTCT_PHN A WHERE A.PHONE_TYPE = 'BUSN' UNION SELECT A2.SETID , A2.VENDOR_ID , A2.CNTCT_SEQ_NUM , 'BUSN' , A2.COUNTRY_CODE , '' AS PHONE , A2.PHONE AS FAX , A2.EXTENSION , A2.EFFDT FROM PS_VNDR_CNTCT_PHN A2 WHERE A2.PHONE_TYPE = 'FAX' |
# | 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 | FAX | Character(24) | VARCHAR2(24) NOT NULL | Fax Number |
8 | EXTENSION | Character(6) | VARCHAR2(6) NOT NULL | Phone Extension |
9 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |