SCC_AU_EMAIL_VW

(SQL View)
Index Back

Email Address View


SELECT EMAIL.EMPLID , USAGETBL.ADDR_USAGE , EMAIL.E_ADDR_TYPE , EMAIL.EMAIL_ADDR FROM %Table(HCR_PER_EMAIL_I) EMAIL , %Table(ADDR_USAGE_TBL) USAGETBL , %Table(ADDR_ORDER_TBL) ORD WHERE EMAIL.E_ADDR_TYPE = ORD.E_ADDR_TYPE AND USAGETBL.ADDR_USAGE = ORD.ADDR_USAGE AND ORD.ADDR_USAGE_TYPE = 'EM' AND ORD.ADDR_USAGE_ORDER = ( SELECT MIN(ORD1.ADDR_USAGE_ORDER) FROM %Table(EMAIL_ADDRESSES) EMAIL1 , %Table(ADDR_ORDER_TBL) ORD1 WHERE USAGETBL.ADDR_USAGE = ORD1.ADDR_USAGE AND EMAIL1.E_ADDR_TYPE = ORD1.E_ADDR_TYPE AND ORD1.ADDR_USAGE_TYPE = 'EM' AND EMAIL1.EMPLID = EMAIL.EMPLID)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 ADDR_USAGE Character(10) VARCHAR2(10) NOT NULL Address Usage
3 E_ADDR_TYPE Character(4) VARCHAR2(4) NOT NULL Email Address Type. Note: Dorm long name has been updated as Dormitory as part of PI26 updates. And, the owner id of the field is updated to CC from HR.
BUSN=Business
CAMP=Campus
DORM=Dormitory
HOME=Home
OTHR=Other
4 EMAIL_ADDR Character(70) VARCHAR2(70) NOT NULL Email Address