EMPL_COMP_SRCH2(SQL View) |
Index Back |
---|---|
Search Vw-PayrollThis search view is used to locate specific payroll data by emplid, company, paygroup and benefit record nbr. |
SELECT %Sql(SCRTY_SEL_PKEY,SEC,SEC) ,SEC.COMPANY ,JB.PAYGROUP ,PER.BENEFIT_RCD_NBR , %Sql(SCRTY_SEL_NMSBR,SEC,SEC) FROM PS_PERS_SRCH_GBL SEC , PS_PER_ORG_ASGN PER , PS_JOB JB WHERE JB.EMPLID = SEC.EMPLID AND JB.EMPL_RCD = SEC.EMPL_RCD AND JB.EMPLID = PER.EMPLID AND JB.EMPL_RCD = PER.EMPL_RCD AND JB.EFFDT = (SELECT MAX(EFFDT) FROM PS_JOB JB1 WHERE JB1.EMPLID = JB.EMPLID AND JB1.EMPL_RCD = JB.EMPL_RCD AND JB1.EFFDT <= %CurrentDateIn) AND JB.EFFSEQ = (SELECT MAX(JB2.EFFSEQ) FROM PS_JOB JB2 WHERE JB2.EMPLID = JB.EMPLID AND JB2.EFFDT = JB.EFFDT AND JB2.EMPL_RCD = JB.EMPL_RCD) |
# | 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 | COMPANY | Character(3) | VARCHAR2(3) NOT NULL |
Company
Prompt Table: COMPANY_TBL |
6 | PAYGROUP | Character(3) | VARCHAR2(3) NOT NULL | Pay Group |
7 | BENEFIT_RCD_NBR | Number(3,0) | SMALLINT NOT NULL | Specifies a sequence number associated with each of multiple concurrent jobs for a one employee. It is used to determine the applicable benefit program for each job. The first job entered for an employee is automatically assigned a Benefit Record Number of zero (0). This field is linked with EMPL_RCD#, the Employment Record Number. |
8 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
9 | NAME_DISPLAY_SRCH | Character(50) | VARCHAR2(50) NOT NULL | Uppercase version of Name to improve performance on searches. |
10 | NAME_PSFORMAT | Character(50) | VARCHAR2(50) NOT NULL | A Person's name in the Peoplesoft Format (basically LN,FN MI |
11 | LAST_NAME_SRCH | Character(30) | VARCHAR2(30) NOT NULL | Last Name |
12 | SECOND_LAST_SRCH | Character(30) | VARCHAR2(30) NOT NULL | Second Last Name |
13 | FIRST_NAME | Character(30) | VARCHAR2(30) NOT NULL | First Name |
14 | LAST_NAME | Character(30) | VARCHAR2(30) NOT NULL | Last Name |
15 | SECOND_LAST_NAME | Character(30) | VARCHAR2(30) NOT NULL | Second Last Name |
16 | NAME_AC | Character(50) | VARCHAR2(50) NOT NULL | Alternate Character Name |
17 | MIDDLE_NAME | Character(30) | VARCHAR2(30) NOT NULL | MIDDLE_NAME |
18 | NAME_DISPLAY | Character(50) | VARCHAR2(50) NOT NULL | Display Name - name formatted for Display based on the Country |