G
Guest
Earlier in the year I devised a database to hold working hours information
for members of staff. Because I didn't know any better I used a 1:m
relationship between two tables.
In time for use after Christmas, I have decided to redesign it. I am using
all the same fields but re-organising.
At the moment I have the following:
tble_employee
EmployeeID (PK)
FName
SName
Work (combobox)
Workstat (combobox)
Operations (checkbox)
Manager (checkbox)
tble_Dept
DeptID (PK)
Dept (Combobox)
SubDept (Combobox)
CostCentre (combobox)
Manager (Combobox)
tble_hrs
EmployeeID (FK)
DeptID (FK)
RecordID (PK)
WeekID
Rate
Basic
CntrctHrs
OT1
thlfhrs
OT2
dblehrs
tble_hol
RecordID (FK)
LeaveType
LeaveNo
A potential alternative:
tble_employee
EmployeeID (PK)
FName
SName
Work (combobox)
Workstat (combobox)
Operations (checkbox)
Manager (checkbox)
tble_Dept
DeptID (PK)
Dept (Combobox)
SubDept (Combobox)
CostCentre (combobox)
Manager (Combobox)
tble_wk
EmployeeID (FK)
DeptID (FK)
WeekID (PK)
tble_hrs
WeekID
RecordID (PK)
Rate
Basic
CntrctHrs
OT1
thlfhrs
OT2
dblehrs
tble_hol
RecordID (FK)
LeaveType
LeaveNo
Any alternatives, improvements?
Cheers!
for members of staff. Because I didn't know any better I used a 1:m
relationship between two tables.
In time for use after Christmas, I have decided to redesign it. I am using
all the same fields but re-organising.
At the moment I have the following:
tble_employee
EmployeeID (PK)
FName
SName
Work (combobox)
Workstat (combobox)
Operations (checkbox)
Manager (checkbox)
tble_Dept
DeptID (PK)
Dept (Combobox)
SubDept (Combobox)
CostCentre (combobox)
Manager (Combobox)
tble_hrs
EmployeeID (FK)
DeptID (FK)
RecordID (PK)
WeekID
Rate
Basic
CntrctHrs
OT1
thlfhrs
OT2
dblehrs
tble_hol
RecordID (FK)
LeaveType
LeaveNo
A potential alternative:
tble_employee
EmployeeID (PK)
FName
SName
Work (combobox)
Workstat (combobox)
Operations (checkbox)
Manager (checkbox)
tble_Dept
DeptID (PK)
Dept (Combobox)
SubDept (Combobox)
CostCentre (combobox)
Manager (Combobox)
tble_wk
EmployeeID (FK)
DeptID (FK)
WeekID (PK)
tble_hrs
WeekID
RecordID (PK)
Rate
Basic
CntrctHrs
OT1
thlfhrs
OT2
dblehrs
tble_hol
RecordID (FK)
LeaveType
LeaveNo
Any alternatives, improvements?
Cheers!