Quote:
|
Originally Posted by demiurgen
punch_clock(name, in, out)
|
Ok, let's think of it this way.
Today I clock in at 10am and out at 2pm.
I do the same tomorrow.
Quote:
|
Originally Posted by georgev
George 10/06/2007 10:00 10/06/2007 14:00
George 11/06/2007 10:00 11/06/2007 14:00
|
I just violated your primary key.
You may wish to consider using a foreign key relationship.
Something like this may be acceptable depending on your requirements.
Code:
users(UserID, FirstName, LastName)
clocks(ClockID, DateTimeIn, DateTimeOut, UserID)