SCH_CLND_DTL_VW

(SQL View)
Index Back

Schedule Calendar Table

The Schedule Calendar table maintains the association of Schedule Workdays to the specific date that the workday begins on.

SELECT S.SETID , S.SCH_ADHOC_IND , S.SCHEDULE_ID , R.ROTATION_ID , X.THE_DATE , D.SHIFTNUM , %Coalesce(SH.EFFDT, D.EFFDT) , D.WRKDAY_ID , D.DAYNUM , D.SHIFT_ID , %Coalesce(SH.SCHED_HRS, D.SCHED_HRS) , %Coalesce(SH.DESCR, ' ') , %Coalesce(SH.END_EFFDT, S.END_EFFDT) , %Coalesce(SH.OFFDAY_IND, D.OFFDAY_IND) , %Coalesce(SH.START_TIME, D.START_TIME) , %Coalesce(SH.END_TIME, D.END_TIME) , %Coalesce(SH.END_OFFSET, D.END_OFFSET) , %Coalesce(SH.STRT_STOP_DIFF, D.STRT_STOP_DIFF) , S.SCH_TYPE , %Coalesce(SH.SYNCID, D.SYNCID) , %Coalesce(SH.LASTUPDDTTM, D.LASTUPDDTTM) FROM PS_SCH_DEFN_TBL S , PS_SCH_DEFN_ROTATN R , PS_TL_DATES_TBL X , PS_SCH_DEFN_DTL D , PS_SCH_SHIFT_TBL SH WHERE D.SETID = SH.SETID (+) AND D.SHIFT_ID = SH.SHIFT_ID (+) AND D.EFFDT >= SH.EFFDT (+) AND R.SETID = S.SETID AND R.SCH_ADHOC_IND = S.SCH_ADHOC_IND AND R.SCHEDULE_ID = S.SCHEDULE_ID AND R.EFFDT = S.EFFDT AND X.THE_DATE BETWEEN S.EFFDT AND S.END_EFFDT AND D.SETID = S.SETID AND D.SCH_ADHOC_IND = S.SCH_ADHOC_IND AND D.SCHEDULE_ID = S.SCHEDULE_ID AND D.EFFDT = S.EFFDT AND D.DAYNUM = %DateDiff(S.EFFDT, X.THE_DATE) - %Truncate((%DateDiff(S.EFFDT, X.THE_DATE)) / S.SCHEDULE_DAYS, 0) * S.SCHEDULE_DAYS + R.ROTATION_START_DAY

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 SCH_ADHOC_IND Character(1) VARCHAR2(1) NOT NULL This field is used on Schedule Definitions to indicate if a Schedule is Ad Hoc (i.e. belonging to a specific employee) or Common (used by many employees)
1=Common Schedule
2=Ad Hoc Primary Schedule
3=Ad Hoc Alternate Schedule
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).
4 ROTATION_ID Character(10) VARCHAR2(10) NOT NULL Rotation ID
5 DUR Date(10) DATE Date Under Report associates time being reported, scheduled or paid, to a specific date.
6 SHIFTNUM Number(2,0) SMALLINT NOT NULL Shift Sequence Number
7 EFFDT Date(10) DATE Effective Date

Default Value: %date

8 WRKDAY_ID Character(10) VARCHAR2(10) NOT NULL Workday ID
9 DAYNUM Number(3,0) SMALLINT NOT NULL Day Number
10 SHIFT_ID Character(10) VARCHAR2(10) NOT NULL Shift ID
11 SCHED_HRS Signed Number(6,2) DECIMAL(4,2) NOT NULL Scheduled Work Hours
12 DESCR Character(30) VARCHAR2(30) NOT NULL Description
13 END_EFFDT Date(10) DATE End Effdt
14 OFFDAY_IND Character(1) VARCHAR2(1) NOT NULL Off Day Indicator
N=Work Shift
Y=Off Shift
15 START_TIME Time(15) TIMESTAMP Interview Start Time
16 END_TIME Time(15) TIMESTAMP Interview End Time
17 END_OFFSET Signed Number(2,0) DECIMAL(1) NOT NULL Date Under Report Offset identifies the number of days following the start day of a shift to assign a specific punch to. If the punch lands on the same day as the start of the shift, the offset is zero. If it lands on the following day, then the offset is one and so on.
18 STRT_STOP_DIFF Number(5,2) DECIMAL(4,2) NOT NULL Start Stop Time Duration
19 SCH_TYPE Character(2) VARCHAR2(2) NOT NULL Shift Type
E=Elapsed
F=Flex
P=Punch
20 SYNCID Number(10,0) DECIMAL(10) NOT NULL The Synchronization ID field stores a value generated by the sync processor. The value is used to identify the type of object that the sync processor is about to handle.
21 LASTUPDDTTM DateTime(26) TIMESTAMP Specifies the date and time of the last update to an entry. This field is maintained by PeopleSoft and is used in a variety of contexts.