GPTH_COM_PHN_VW

(SQL View)
Index Back

Company Phone View

View for Company phone

SELECT DISTINCT P.COMPANY ,P.EFFDT ,P.PHONE_TYPE ,P.COUNTRY_CODE ,P.PHONE ,G.PROCESS_INSTANCE ,G.EMPLID FROM PS_COMP_PHONE_TBL P ,PS_GPTH_RPT_G_VW G WHERE P.COMPANY=G.COMPANY AND P.PHONE_TYPE = 'BUSN' AND P.EFFDT=( SELECT MAX(P1.EFFDT) FROM PS_COMP_PHONE_TBL P1 WHERE P.COMPANY=P1.COMPANY AND P1.EFFDT<=( SELECT MAX(G1.PRD_END_DT) FROM PS_GPTH_RPT_G_VW G1 WHERE G.PROCESS_INSTANCE=G1.PROCESS_INSTANCE AND G.Company=G1.COMPANY ))

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 COMPANY Character(3) VARCHAR2(3) NOT NULL Company
2 EFFDT Date(10) DATE Effective Date

Default Value: %date

3 PHONE_TYPE Character(4) VARCHAR2(4) NOT NULL Phone Type
BUSN=Business
CAMP=Campus
CELL=Mobile
DORM=Dormitory
FAX=FAX
HOME=Home
MAIN=Main
OTR=Other
PGR1=Pager 1
PGR2=Pager 2
TELX=Telex
WORK=Work
4 COUNTRY_CODE Character(3) VARCHAR2(3) NOT NULL Country Code
5 PHONE Character(24) VARCHAR2(24) NOT NULL Telephone
6 PROCESS_INSTANCE Number(10,0) DECIMAL(10) NOT NULL Process Instance
7 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID