Hi,
I am building a planning database that will hold staff tables, holidays, sickness, requests so that worked days can be planned.
Just wanting to know if this structures is going in the right direction and should holidays and absence be in the same table with other table with ID of these types?
[TABLE="width: 758"]
<tbody>[TR]
[TD]tblStaffing ID[/TD]
[TD][/TD]
[TD]tblHolidays[/TD]
[TD][/TD]
[TD]PlanningTeamID[/TD]
[TD][/TD]
[TD]tblShifts[/TD]
[TD]tblRequestDetails[/TD]
[/TR]
[TR]
[TD]Forename[/TD]
[TD][/TD]
[TD]HolidayID[/TD]
[TD][/TD]
[TD]PlanningID[/TD]
[TD][/TD]
[TD]ShiftPatternID[/TD]
[TD]RequestID[/TD]
[/TR]
[TR]
[TD]Surname[/TD]
[TD][/TD]
[TD]StaffID[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]PlanningID[/TD]
[TD]PlanningID[/TD]
[/TR]
[TR]
[TD]EmploymentCategory[/TD]
[TD][/TD]
[TD]PlanningID[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]StaffID[/TD]
[TD]StaffID[/TD]
[/TR]
[TR]
[TD]Hub[/TD]
[TD][/TD]
[TD]LeaveType[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]StartShift[/TD]
[TD]StartDate[/TD]
[/TR]
[TR]
[TD]Department[/TD]
[TD][/TD]
[TD]StartDate[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]EndShift[/TD]
[TD]EndDate[/TD]
[/TR]
[TR]
[TD]FTE[/TD]
[TD][/TD]
[TD]EndDate[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]StartTime[/TD]
[/TR]
[TR]
[TD]SupervisorID[/TD]
[TD][/TD]
[TD]Approved/Declined[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]EndTime[/TD]
[/TR]
[TR]
[TD]CostCentre[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Activity[/TD]
[/TR]
[TR]
[TD]LatestStartDate[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Comments[/TD]
[/TR]
[TR]
[TD]MondayHours[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]TuesdayHours[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]WednesdayHours[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ThursdayHours[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FridayHours[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody><colgroup><col><col><col><col><col><col><col><col></colgroup>[/TABLE]
My other question is format of the shift pattern
[TABLE="width: 100"]
<tbody>[TR]
[TD]StaffID[/TD]
[TD]Monday[/TD]
[TD]Tuesday[/TD]
[TD]Wednesday[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]7[/TD]
[TD]7[/TD]
[TD]7[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]7[/TD]
[TD]0[/TD]
[TD]7[/TD]
[TD]-[/TD]
[/TR]
</tbody>[/TABLE]
or should it be
[TABLE="width: 500"]
<tbody>[TR]
[TD]StaffID[/TD]
[TD]Date[/TD]
[TD]Day[/TD]
[TD]Hoursworked[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]23/06/2017[/TD]
[TD]Friday[/TD]
[TD]7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]16/06/2017[/TD]
[TD]Monday[/TD]
[TD]7[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I am building a planning database that will hold staff tables, holidays, sickness, requests so that worked days can be planned.
Just wanting to know if this structures is going in the right direction and should holidays and absence be in the same table with other table with ID of these types?
[TABLE="width: 758"]
<tbody>[TR]
[TD]tblStaffing ID[/TD]
[TD][/TD]
[TD]tblHolidays[/TD]
[TD][/TD]
[TD]PlanningTeamID[/TD]
[TD][/TD]
[TD]tblShifts[/TD]
[TD]tblRequestDetails[/TD]
[/TR]
[TR]
[TD]Forename[/TD]
[TD][/TD]
[TD]HolidayID[/TD]
[TD][/TD]
[TD]PlanningID[/TD]
[TD][/TD]
[TD]ShiftPatternID[/TD]
[TD]RequestID[/TD]
[/TR]
[TR]
[TD]Surname[/TD]
[TD][/TD]
[TD]StaffID[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]PlanningID[/TD]
[TD]PlanningID[/TD]
[/TR]
[TR]
[TD]EmploymentCategory[/TD]
[TD][/TD]
[TD]PlanningID[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]StaffID[/TD]
[TD]StaffID[/TD]
[/TR]
[TR]
[TD]Hub[/TD]
[TD][/TD]
[TD]LeaveType[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]StartShift[/TD]
[TD]StartDate[/TD]
[/TR]
[TR]
[TD]Department[/TD]
[TD][/TD]
[TD]StartDate[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]EndShift[/TD]
[TD]EndDate[/TD]
[/TR]
[TR]
[TD]FTE[/TD]
[TD][/TD]
[TD]EndDate[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]StartTime[/TD]
[/TR]
[TR]
[TD]SupervisorID[/TD]
[TD][/TD]
[TD]Approved/Declined[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]EndTime[/TD]
[/TR]
[TR]
[TD]CostCentre[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Activity[/TD]
[/TR]
[TR]
[TD]LatestStartDate[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Comments[/TD]
[/TR]
[TR]
[TD]MondayHours[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]TuesdayHours[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]WednesdayHours[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ThursdayHours[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FridayHours[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody><colgroup><col><col><col><col><col><col><col><col></colgroup>[/TABLE]
My other question is format of the shift pattern
[TABLE="width: 100"]
<tbody>[TR]
[TD]StaffID[/TD]
[TD]Monday[/TD]
[TD]Tuesday[/TD]
[TD]Wednesday[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]7[/TD]
[TD]7[/TD]
[TD]7[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]7[/TD]
[TD]0[/TD]
[TD]7[/TD]
[TD]-[/TD]
[/TR]
</tbody>[/TABLE]
or should it be
[TABLE="width: 500"]
<tbody>[TR]
[TD]StaffID[/TD]
[TD]Date[/TD]
[TD]Day[/TD]
[TD]Hoursworked[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]23/06/2017[/TD]
[TD]Friday[/TD]
[TD]7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]16/06/2017[/TD]
[TD]Monday[/TD]
[TD]7[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]