HR_SP_PERS_SRCH(SQL View) |
Index Back |
---|---|
Search - All Pers w/ an ERNPERS_SRCH_GBL is used as a search view to select person records for you to use when you access a panel. This view shows you records only for persons in departments that your operator class is allowed to access. All PER_ORG Types are returned. |
SELECT a.OPRID ,a.ROWSECCLASS ,a.EMPLID ,a.EMPL_RCD ,b.EFFDT ,a.NAME ,a.NAME_DISPLAY_SRCH ,a.LAST_NAME_SRCH ,a.SECOND_LAST_SRCH ,a.FIRST_NAME ,a.LAST_NAME ,a.SECOND_LAST_NAME ,a.NAME_AC ,a.JOBCODE ,a.DEPTID FROM PS_PERS_SRCH_GBL a ,PS_JOB b WHERE a.EMPLID = b.EMPLID AND a.EMPL_RCD = b.EMPL_RCD AND b.HR_STATUS = 'A' AND b.EMPL_RCD = ( SELECT MIN(b1.EMPL_RCD) FROM PS_JOB b1 WHERE b1.EMPLID = b.EMPLID AND b1.EFFSEQ = ( SELECT MAX(b2.EFFSEQ) FROM PS_JOB b2 WHERE b2.EMPLID = b1.EMPLID AND b2.EMPL_RCD = b1.EMPL_RCD AND b2.EFFDT = b1.EFFDT) AND EXISTS ( SELECT 'X' FROM PS_JOB c WHERE c.EMPLID = b1.EMPLID AND c.EMPL_RCD = b1.EMPL_RCD AND c.EFFSEQ = ( SELECT MAX(c2.EFFSEQ) FROM PS_JOB c2 WHERE c2.EMPLID = c.EMPLID AND c2.EMPL_RCD = c.EMPL_RCD AND c2.EFFDT = c.EFFDT) AND c.EFFDT = ( SELECT MAX(c1.EFFDT) FROM PS_JOB c1 WHERE c1.EMPLID = c.EMPLID AND c1.EMPL_RCD = c.EMPL_RCD AND c1.EFFDT <= %CurrentDateIn) AND c.HR_STATUS = 'A')) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |
2 | ROWSECCLASS | Character(30) | VARCHAR2(30) NOT NULL | The class used to determine row level security |
3 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
4 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL | Empl Record |
5 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |
6 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
7 | NAME_DISPLAY_SRCH | Character(50) | VARCHAR2(50) NOT NULL | Uppercase version of Name to improve performance on searches. |
8 | LAST_NAME_SRCH | Character(30) | VARCHAR2(30) NOT NULL | Last Name |
9 | SECOND_LAST_SRCH | Character(30) | VARCHAR2(30) NOT NULL | Second Last Name |
10 | FIRST_NAME | Character(30) | VARCHAR2(30) NOT NULL | First Name |
11 | LAST_NAME | Character(30) | VARCHAR2(30) NOT NULL | Last Name |
12 | SECOND_LAST_NAME | Character(30) | VARCHAR2(30) NOT NULL | Second Last Name |
13 | NAME_AC | Character(50) | VARCHAR2(50) NOT NULL | Alternate Character Name |
14 | JOBCODE | Character(6) | VARCHAR2(6) NOT NULL | Job Code |
15 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL | Department |