I'm trying to put together a database, but I've ran into a problem. It seems to me that this can't be the best solution, so perhaps someone here can help me solve my problem.
Basically, I have these 'Jobs' that spend a certain amount of time in different 'Departments'. I need to know how long the jobs have been in each department. What I have done now, is I have a 'Job' table, 'Department' table, and a 'Stopwatch' table. The 'Job' entry has an attribute 'Current_Dept' which contains the 'Department_ID' of the current dept. Everytime a 'Job' enters a 'Dept', I create a 'Stopwatch' with a 'Start_Time', 'Job_ID', 'Dept_ID', and of course an 'End_Time' when the job moves on. This will eventually create a WHOLE LOT of Stopwatch entries. Is there a simpler way of accomplishing this?
Thanks so much!