AV_PEOPLE_SRCH

(SQL View)
Index Back

Advancement People Search View

Common view used when searching for/selecting a person for display/update. This view goes against the names table as well as the personal data table. The PeopleCode contained on this view is based upon the peoplecode in PEOPLE_SRCH. ----------------------------------------------------------------------------------------------------------------- 10/24/2003 8.9 Person Model Before: SELECT A.OPRCLASS , A.EMPLID , A.NAME , C.COUNTRY , D.NATIONAL_ID_TYPE , D.DESCRSHORT , C.NATIONAL_ID , C.NATIONAL_ID_MSK , A.BIRTHDATE , A.BIRTHDATE_MSK , A.SEX , A.CAMPUS_ID , A.LAST_NAME_SRCH , A.FIRST_NAME_SRCH FROM PS_PERS_DTA_MSK_VW A , PS_PERS_NID_MSK_VW C , PS_NID_TYPE_TBL D WHERE A.OPRCLASS = C.OPRCLASS AND A.EMPLID=C.EMPLID AND A.LAST_NAME_SRCH <> ' ' AND C.COUNTRY = D.COUNTRY AND C.NATIONAL_ID_TYPE = D.NATIONAL_ID_TYPE --------------------------------------------------------------------------------------------------- 06/23/99 Jitendra Gupta - Removed the distinct condition and the Names Table SELECT A.EMPLID, A.NAME, C.COUNTRY, D.NATIONAL_ID_TYPE, D.DESCRSHORT, C.NATIONAL_ID, A.BIRTHDATE, A.SEX, A.CAMPUS_ID, A.LAST_NAME_SRCH, A.FIRST_NAME_SRCH FROM PS_PERSONAL_DATA A, PS_PERS_NID C, PS_NID_TYPE_TBL D WHERE A.EMPLID=C.EMPLID AND A.LAST_NAME_SRCH <> ' ' AND C.COUNTRY = D.COUNTRY AND C.NATIONAL_ID_TYPE = D.NATIONAL_ID_TYPE _____________________________________________________________ 03/31/99 Curt DeJean - Removed check for most current Effdt SELECT DISTINCT A.NAME, A.EMPLID, C.COUNTRY, D.NATIONAL_ID_TYPE, D.DESCRSHORT, C.NATIONAL_ID, A.BIRTHDATE, A.SEX, A.CAMPUS_ID, B.LAST_NAME_SRCH, B.FIRST_NAME_SRCH, B.NAME_TYPE FROM PS_PERSONAL_DATA A, PS_NAMES B, PS_PERS_NID C, PS_NID_TYPE_TBL D WHERE A.EMPLID = B.EMPLID AND A.EMPLID=C.EMPLID AND B.LAST_NAME_SRCH <> ' ' AND C.COUNTRY = D.COUNTRY AND C.NATIONAL_ID_TYPE = D.NATIONAL_ID_TYPE AND B.EFFDT IN (SELECT MAX(B1.EFFDT) FROM PS_NAMES B1 WHERE B1.EMPLID=A.EMPLID AND B1.LAST_NAME_SRCH <> ' ')

SELECT A.OPRCLASS , A.EMPLID , B.NAME , C.COUNTRY , C.NATIONAL_ID_TYPE , C.NID_DESCRSHORT , C.NATIONAL_ID , C.NATIONAL_ID_MSK , A.BIRTHDATE , A.BIRTHDATE_MSK , E.SEX , A.CAMPUS_ID , B.LAST_NAME_SRCH , B.FIRST_NAME_SRCH FROM PS_PERSON_MSK_VW A , PS_HCR_PERSON_NM_I B , PS_PERS_NID_MSK_VW C , PS_HCR_PER_PDE_I E WHERE A.EMPLID = B.EMPLID AND A.OPRCLASS = C.OPRCLASS AND A.EMPLID=C.EMPLID AND B.LAST_NAME_SRCH <> ' ' AND B.EMPLID = E.EMPLID AND %EffdtCheck( HCR_PER_PDE_I E1, E, %CurrentDateIn)

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