Document toolboxDocument toolbox

14.1 sp370_operative_days

The smallest scheduling unit managed within ServiceOptimizer is a single employee/date also known as an OperativeDay: each record in this table contains the attributes of the employee's schedule as calculated by ServiceOptimizer. 

Data is only updated for active FRUs within the FRU memory horizon. 


If an employee is not posted to any team on a particular date, there will be no sp370_operative_days record for that OperativeDay. 
All date fields are in FRU local time. 


Note that although the descriptions below reference fields in sp210_employees and other tables, values can be derived instead from an overriding pattern (e.g. sp122_work_patterns) or date-specific override (e.g. sp064_overrides). 

HouseKeeping

This table is tidied by sp_dbtidy's Global group.


 

Table Definition

Field
Type
Default
Nullable
employee_nonumber(9) (error)
schedule_datedate (error)
start_of_day_timedate (error)
end_of_day_timedate (error)
shift_startdate (tick)
shift_enddate (tick)
authorised_overtimenumber(4) (tick)
travel_in_owntime_toworknumber(6) (tick)
travel_in_owntime_homenumber(6) (tick)
break_durationnumber(4) (tick)
break_earliest_startdate (tick)
break_latest_startdate (tick)
start_loc_typenumber(1) (error)
start_loc_postcodevarchar(30) (tick)
start_loc_region_nonumber(9) (tick)
end_loc_typenumber(1) (error)
end_loc_postcodevarchar(30) (tick)
end_loc_region_nonumber(9) (tick)
lkc_loc_typenumber(1) (error)
lkc_loc_postcodevarchar(30) (tick)
lkc_loc_region_nonumber(9) (tick)
is_public_holidaynumber(1) (error)
total_capacity_minsnumber(6) (tick)
resp_unit_nonumber(4) (tick)

Keys

primary key (employee_no, schedule_date) 
foreign key (employee_no) references 14.1 sp210_employees(employee_no) 
foreign key (start_loc_type) references /wiki/spaces/SCH141/pages/27066920(location) 
foreign key (start_loc_region_no) references /wiki/spaces/SCH141/pages/27068047(region_no) 
foreign key (end_loc_type) references sp271_start_end_locations(location) 
foreign key (end_loc_region_no) references sp057_regions(region_no) 
foreign key (lkc_loc_type) references sp271_start_end_locations(location) 
foreign key (lkc_loc_region_no) references sp057_regions(region_no) 
foreign key (resp_unit_no) references /wiki/spaces/SCH141/pages/27099986(resp_unit_no)

Primary Key Referenced From

 

Column Descriptions

FieldDescription
employee_no Identifies the employee.
schedule_dateIdentifies the date.
start_of_day_time Boundary between this OperativeDay and the preceding OperativeDay.
end_of_day_timeBoundary between this OperativeDay and the next OperativeDay. 
shift_start Start of shift. See sp115_shifts (start_time). Null if the employee has no shift on this day.
shift_end End of shift. See sp115_shifts (end_time). Null if the employee has no shift on this day.
authorised_overtimeThe maximum number of minutes overtime that can be allocated to the employee on this day. See sp210_employees (max_overtime). Null if the employee has no shift on this day. 
travel_in_owntime_toworkMaximum before shift travel (in minutes). See sp210_employees (TOTB). Null if the employee has no shift on this day.
travel_in_owntime_homeMaximum after shift travel (in minutes). See sp210_employees (TOTA). Null if the employee has no shift on this day. 
break_durationBreak duration. See sp115_shifts (lunch_duration). Null if the employee has no shift on this day or if the shift has no break.
break_earliest_startEarliest start for break. See sp115_shifts (lunch_start). Null if the employee has no shift on this day or if the shift has no break. 
break_latest_startLatest start for break. See sp115_shifts (lunch_end). Null if the employee has no shift on this day or if the shift has no break. 
start_loc_type 
start_loc_postcode 
start_loc_region_no

Location from which employee starts work.

See sp210_employees (default_start_loc, default_start_loc_postcode, default_start_loc_region_no).

end_loc_type 
end_loc_postcode
end_loc_region_no

Location from which employee finishes work.

See sp210_employees (default_end_loc, default_end_loc_postcode, default_end_loc_region_no). 

lkc_loc_type 
lkc_loc_postcode 
lkc_loc_region_no

Location about which employee's range local knowledge is centred.

See sp210_employees (default_LK_centre_loc, default_LK_centre_postcode, default_LK_centre_region_no).

is_public_holiday

Indicates whether this day is a Public Holiday.

0 = Not a Public Holiday.

1 = Public Holiday. 

total_capacity_minsTotal capacity in minutes. Null if capacity checking is not enabled.
resp_unit_noThe responsibility unit that the employee is posted to on this date.