EMP_SRCH_COR_LN(SQL View) |
Index Back |
---|---|
Rel Lang for EMP_SRCH_COR_FLRelated language record for EMP_SRCH_COR_FL |
SELECT DISTINCT OPR.OPRID , SEC.EMPLID , SEC.EMPL_RCD , NM.LANGUAGE_CD , NM.NAME , NM.NAME_DISPLAY_SRCH , NM.FIRST_NAME_SRCH , NM.LAST_NAME_SRCH , NM.SECOND_LAST_SRCH , NM.FIRST_NAME , NM.LAST_NAME , NM.SECOND_LAST_NAME , NM.NAME_AC , NM.MIDDLE_NAME , NM.NAME_DISPLAY , NM.PREF_FIRST_NM_SRCH , NM.PREF_FIRST_NAME , PORG.BUSN_TITLE_SRCH , PORG.BUSINESS_TITLE FROM PS_SJT_PERSON SEC , PS_NAMES_LNG NM , PSOPRDEFN OPR , PS_PER_ORG_ASG_LNG PORG WHERE SEC.APPT_TYPE IN ('0', '3') AND NM.EMPLID = SEC.EMPLID AND NM.NAME_TYPE = 'PRI' AND NM.EFFDT = ( SELECT MAX(NM1.EFFDT) FROM PS_NAMES NM1 WHERE NM1.EMPLID = NM.EMPLID AND NM1.NAME_TYPE = 'PRI' AND NM1.EFFDT <= %CurrentDateIn) AND (EXISTS ( SELECT 'X' FROM PS_SJT_CLASS_ALL CLS , PS_SJT_OPR_CLS SOC WHERE CLS.SCRTY_SET_CD = 'PPLJOB' AND CLS.SCRTY_TYPE_CD = SEC.SCRTY_TYPE_CD AND CLS.SCRTY_KEY1 = SEC.SCRTY_KEY1 AND CLS.SCRTY_KEY2 = SEC.SCRTY_KEY2 AND CLS.SCRTY_KEY3 = SEC.SCRTY_KEY3 AND CLS.TREE = 'Y' AND SOC.OPRID=OPR.OPRID AND SOC.CLASSID = CLS.CLASSID AND SOC.CLASSID = OPR.ROWSECCLASS AND SOC.SEC_RSC_FLG = '1' ) OR EXISTS ( SELECT 'X' FROM PS_SJT_CLASS_ALL CLS , PS_SJT_OPR_CLS SOC WHERE CLS.SCRTY_SET_CD = 'PPLJOB' AND CLS.SCRTY_TYPE_CD = SEC.SCRTY_TYPE_CD AND CLS.SCRTY_KEY1 = SEC.SCRTY_KEY1 AND CLS.SCRTY_KEY2 = SEC.SCRTY_KEY2 AND CLS.SCRTY_KEY3 = SEC.SCRTY_KEY3 AND CLS.TREE = 'N' AND SOC.OPRID=OPR.OPRID AND SOC.CLASSID = CLS.CLASSID ) OR EXISTS ( SELECT 'X' FROM PS_SJT_CLASS_ALL CLS , PS_SJT_OPR_CLS SOC WHERE CLS.SCRTY_SET_CD = 'PPLJOB' AND CLS.SCRTY_TYPE_CD = SEC.SCRTY_TYPE_CD AND CLS.SCRTY_KEY1 = SEC.SCRTY_KEY1 AND CLS.SCRTY_KEY2 = SEC.SCRTY_KEY2 AND CLS.SCRTY_KEY3 = SEC.SCRTY_KEY3 AND CLS.TREE = 'Y' AND SOC.OPRID=OPR.OPRID AND SOC.CLASSID = CLS.CLASSID AND SOC.CLASSID = OPR.ROWSECCLASS AND SOC.SEC_RSC_FLG = '3' )) AND PORG.EMPLID=SEC.EMPLID AND PORG.EMPL_RCD=SEC.EMPL_RCD AND PORG.LANGUAGE_CD=NM.LANGUAGE_CD |
# | 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 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL |
Employee ID
Prompt Table: PERSON |
3 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL | Empl Record |
4 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |
5 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
6 | NAME_DISPLAY_SRCH | Character(50) | VARCHAR2(50) NOT NULL | Uppercase version of Name to improve performance on searches. |
7 | FIRST_NAME_SRCH | Character(30) | VARCHAR2(30) NOT NULL | First Name |
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 | MIDDLE_NAME | Character(30) | VARCHAR2(30) NOT NULL | MIDDLE_NAME |
15 | NAME_DISPLAY | Character(50) | VARCHAR2(50) NOT NULL | Display Name - name formatted for Display based on the Country |
16 | PREF_FIRST_NM_SRCH | Character(30) | VARCHAR2(30) NOT NULL | Preferred First Name |
17 | PREF_FIRST_NAME | Character(30) | VARCHAR2(30) NOT NULL | Preferred First Name |
18 | BUSN_TITLE_SRCH | Character(30) | VARCHAR2(30) NOT NULL | Business Title |
19 | BUSINESS_TITLE | Character(30) | VARCHAR2(30) NOT NULL | Business Title |