Re: Can this be done?
- From: "tina" <nospam@xxxxxxxxxxx>
- Date: Sat, 06 May 2006 04:42:51 GMT
well, i didn't really understand your question about hours of the day, when
your Shifts table seems to be only setting the parameters of each shift - a
start time and end time?
at any rate, your Shiftstable is not normalized. to define each shift, and
the start/end times of each shift for each workday of the week, you need two
tables, as
tblShifts
ShiftID (pk)
ShiftName (or ShiftCode, or however you identify each shift. commonly:
first, second, third shifts. or sometimes, day, swing, grave shifts.)
<any other fields that describe a shift, such as a standard shift
differential, perhaps.>
tblShiftParameters
ParamID (pk)
ShiftID (foreign key from tblShifts)
DayOfWeek
StartTime
EndTime
relationships are:
tblShifts.ShiftID 1:n tblShiftParameters.ShiftID
hth
"sammy" <sammy1971@xxxxxxxxxxx> wrote in message
news:%23FU8j7KcGHA.1324@xxxxxxxxxxxxxxxxxxxxxxx
Just wondering if this can be done in accessall
have an employeestable like this
EmpID autonumber
fname
lname
location
ShiftID (FK to shiftstable)
Shiftstable
ShiftID (PK)
Mondaystart
MondayEnd
rest of work days
What I am wondering about is if theres anyway I can create a table with
day's hours with a yes/no filed to show if the employee is busy or idle?
Thanks
.
- References:
- Can this be done?
- From: sammy
- Can this be done?
- Prev by Date: Re: Normalizing Question
- Next by Date: Re: Normalizing Question
- Previous by thread: Can this be done?
- Next by thread: Re: Normalizing Question
- Index(es):
Loading