SCH_LOOK_UP_VW(SQL View) |
Index Back |
---|---|
Employee Search Schedule AssgEmployee Search View for Schedule Assignment component combining T&L Group Security and dept based security views. |
SELECT DISTINCT SCH.SETID , GRP.SCHEDULE_GRP , SCH.SCHEDULE_ID , SCH.SCH_TYPE , SCH.SCHEDULE_DAYS , DTL.WRKDAY_ID , DTL.SHIFT_ID , DTL.SCHED_HRS , DTL.OFFDAY_IND , DTL.DAYNUM , COALESCE(DTL.START_TIME ,SHF.START_TIME) , COALESCE(DTL.END_TIME ,SHF.END_TIME) , COALESCE(DTL.SCHED_HRS , SHF.SCHED_HRS) AS SHIFT_HRS , ASG.EMPLID , ASG.EMPL_RCD , NAM.NAME , NAM.LAST_NAME , NAM.FIRST_NAME FROM PS_SCH_DEFN_TBL SCH LEFT OUTER JOIN PS_SCH_ASSIGN ASG ON (SCH.SCHEDULE_ID = ASG.SCHEDULE_ID OR SCH.SCHEDULE_ID = ASG.ALT_WRK_SCHED_ID) LEFT OUTER JOIN PS_NAMES NAM ON (NAM.EMPLID = ASG.EMPLID AND NAM.NAME_TYPE='PRI') , PS_SCH_DEFN_DTL DTL LEFT OUTER JOIN PS_SCH_SHIFT_TBL SHF ON (DTL.SETID = SHF.SETID AND DTL.SHIFT_ID = SHF.SHIFT_ID ) , PS_SCH_GROUP_TBL GRP WHERE 1=1 AND DTL.SCH_ADHOC_IND = '1' AND GRP.DEFAULT_SETID = SCH.SETID AND SCH.SETID=DTL.SETID AND SCH.SCH_ADHOC_IND=DTL.SCH_ADHOC_IND AND SCH.SCHEDULE_ID=DTL.SCHEDULE_ID AND SCH.EFFDT = ( SELECT MAX(SCH1.EFFDT) FROM PS_SCH_DEFN_TBL SCH1 WHERE SCH1.SCHEDULE_ID=SCH.SCHEDULE_ID AND SCH1.SETID=SCH.SETID AND SCH1.SCH_ADHOC_IND = SCH.SCH_ADHOC_IND) AND DTL.EFFDT = ( SELECT MAX(DTL1.EFFDT) FROM PS_SCH_DEFN_DTL DTL1 WHERE DTL1.SCHEDULE_ID=DTL.SCHEDULE_ID AND DTL1.SETID=SCH.SETID AND DTL1.SCH_ADHOC_IND = DTL.SCH_ADHOC_IND AND DTL1.SHIFT_ID=DTL.SHIFT_ID) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | SCHEDULE_GRP | Character(10) | VARCHAR2(10) NOT NULL |
Scheduling Organizational Group Code
Prompt Table: SCH_GROUP_TBL |
3 | SCHEDULE_ID | Character(16) | VARCHAR2(16) NOT NULL |
The Schedule ID is a field used to uniquely identify a Schedule Definition or Schedule Calendar (built out Schedule Definition).
Prompt Table: SCH_DEFN_TBL |
4 | SCH_TYPE | Character(2) | VARCHAR2(2) NOT NULL |
Shift Type
E=Elapsed F=Flex P=Punch |
5 | SCHEDULE_DAYS | Number(3,0) | SMALLINT NOT NULL | Days in Schedule |
6 | WRKDAY_ID | Character(10) | VARCHAR2(10) NOT NULL |
Workday ID
Prompt Table: SCH_WRKDAY_TBL |
7 | SHIFT_ID | Character(10) | VARCHAR2(10) NOT NULL |
Shift ID
Prompt Table: %EDITTABLE7 |
8 | SCHED_HRS | Signed Number(6,2) | DECIMAL(4,2) NOT NULL | Scheduled Work Hours |
9 | OFFDAY_IND | Character(1) | VARCHAR2(1) NOT NULL |
Off Day Indicator
N=Work Shift Y=Off Shift |
10 | DAYNUM | Number(3,0) | SMALLINT NOT NULL | Day Number |
11 | START_TIME | Time(15) | TIMESTAMP | Interview Start Time |
12 | END_TIME | Time(15) | TIMESTAMP | Interview End Time |
13 | SCHEDULED_HRS | Number(6,1) | DECIMAL(5,1) NOT NULL | Scheduled Hours |
14 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL |
Employee ID
Prompt Table: PERSON_NAME |
15 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL | Empl Record |
16 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
17 | LAST_NAME | Character(30) | VARCHAR2(30) NOT NULL | Last Name |
18 | FIRST_NAME | Character(30) | VARCHAR2(30) NOT NULL | First Name |