Carlosdl
29795 pts. | Sep 16 2009 8:36PM GMT
Yes, it depends.
But without more details, I would also tend to prefer the one row per event option.
The original question says “a table into which you insert records representing occurrences of an event“.
If you insert only one row containg the in and out times, I don’t think that row represents “an event”.
I also wanted to comment on this:
“However, it seems that to update an existing record runs a risk (albeit slight) of introducing an error…putting the clock-out in the clock-in column, for instance.”
It would also run the risk of putting a wrong time, or putting a wrong employee id, or writing the information to the wrong table, etc…
I assume this would be made by an application, so, once the application has been written, and it works ok, I don’t see this being an additional risk.
ASWDEVELOPER
205 pts. | Sep 22 2009 4:00PM GMT
one short addition to the discussion … i would like to see a short description
of how the records would be used … and within this context, how to handle
the consequences of events which are not recorded?
Juju
335 pts. | Sep 23 2009 3:36PM GMT
One table, definitely, but you could have separate input forms for in-time and out-time based on the same table. I designed a database to reconcile agency staff time worked, billed, paid and have run into some of the same problems you have. You can run a quick query to find out who failed to clock in or out and you can also make that field “mandatory” so that you know immediately if they fail to clock in/out.
Good luck on your project. I, too, and an older database user/designer going back to 1981 and Radio Shack’s Profile Plus database program.
Judy ![]()






