SSR_INS_ADV_VW2

(SQL View)
Index Back

Insturctor/Advisor Search View

Search used in CS Self-Service Instructor/Advisor. Contains Preferred Name of the Instructor/Advisor if present else primary name.HCR_PERSON_NM_I is replaced by SCC_PRFPRIMNMVW.

SELECT DISTINCT A.OPRCLASS ,d.LAST_NAME_SRCH ,d.FIRST_NAME_SRCH ,A.EMPLID ,d.NAME ,e.SEX ,A.BIRTHDATE ,A.BIRTHDATE_MSK ,A.CAMPUS_ID ,B.NATIONAL_ID ,B.NATIONAL_ID_MSK ,B.COUNTRY ,B.NATIONAL_ID_TYPE ,B.NID_DESCRSHORT ,d.NAME_DISPLAY FROM PS_INSTR_ADVISOR AA , PS_PERSON_MSK_VW A , PS_PERS_NID_MSK_VW B , PS_SCC_PRFPRIMNMVW d , PS_HCR_PER_PDE_I e WHERE A.EMPLID = AA.EMPLID AND AA.EFFDT = ( SELECT MAX(AA2.EFFDT) FROM PS_INSTR_ADVISOR AA2 WHERE AA2.EMPLID = AA.EMPLID AND AA2.EFFDT <= %CurrentDateIn AND AA2.INSTR_TYPE <> 'ADV') AND A.OPRCLASS = B.OPRCLASS AND A.EMPLID = B.EMPLID AND A.EMPLID = d.EMPLID AND A.EMPLID = e.EMPLID AND e.EFFDT = ( SELECT MAX(e1.EFFDT) FROM PS_HCR_PER_PDE_I e1 WHERE e1.EMPLID=e.EMPLID AND e1.EFFDT<=%CurrentDateIn)

  • Related Language Record: SSR_INS_ADV_LN2
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 OPRCLASS Character(30) VARCHAR2(30) NOT NULL Operator Class
    2 LAST_NAME Character(30) VARCHAR2(30) NOT NULL Last Name
    3 FIRST_NAME_SRCH Character(30) VARCHAR2(30) NOT NULL First Name
    4 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
    5 NAME Character(50) VARCHAR2(50) NOT NULL Name
    6 SEX Character(1) VARCHAR2(1) NOT NULL Gender
    F=Female
    M=Male
    U=Unknown
    X=Indeterminate/Intersex/Unspec
    7 BIRTHDATE Date(10) DATE Date of Birth
    8 BIRTHDATE_MSK Character(10) VARCHAR2(10) NOT NULL Date of Birth
    9 CAMPUS_ID Character(16) VARCHAR2(16) NOT NULL Campus ID
    10 NATIONAL_ID Character(20) VARCHAR2(20) NOT NULL National ID
    11 NATIONAL_ID_MSK Character(20) VARCHAR2(20) NOT NULL National ID
    12 NID_COUNTRY Character(3) VARCHAR2(3) NOT NULL National ID Country
    13 NATIONAL_ID_TYPE Character(6) VARCHAR2(6) NOT NULL National ID Type
    14 NID_DESCRSHORT Character(10) VARCHAR2(10) NOT NULL NID Short Description
    15 NAME_DISPLAY Character(50) VARCHAR2(50) NOT NULL Display Name - name formatted for Display based on the Country