M
Muppet
What is a good way to approach a "point in time" design
for a lookup table and its relation to a transaction table?
I have a Call table and an Employee table (I have more but
I think this will suffice for the purposes of explantion).
tblCall
EmployeeID
TimeOfCall
'other details
tblEmployee
EmployeeID
FirstName
LastName
Department
Now let's say that when I take a call, I assign EmployeeID.
Further let's say that the employee moves to a different
depeartment in 6 months.
When I run a select query in 6 months, the call will
reflect the CURRENT department information. However, I
want the call to reflect the POINT IN TIME department.
What is the best way to handle this?
for a lookup table and its relation to a transaction table?
I have a Call table and an Employee table (I have more but
I think this will suffice for the purposes of explantion).
tblCall
EmployeeID
TimeOfCall
'other details
tblEmployee
EmployeeID
FirstName
LastName
Department
Now let's say that when I take a call, I assign EmployeeID.
Further let's say that the employee moves to a different
depeartment in 6 months.
When I run a select query in 6 months, the call will
reflect the CURRENT department information. However, I
want the call to reflect the POINT IN TIME department.
What is the best way to handle this?