mysql - Database design -- NULL or a max value to indicate this date value? -


So I'm working on a schedule app that uses a MySQL DB. One of the modules for this site is for managers to track slowness, overtime, and absence. The current site is a mess. This is just what the manager has entered in the major data, but this manager does not comply with previously known data (like the employee is expected to come / go) or the need to use any standard format. Some managers enter 30 minutes (30 minutes late meaning) while others can enter 8:30 (which means they were due to 8:00 o'clock), etc.

My version will be limited to the manager's staff, then select the change in the question, and they will be able to basically enter two values: the time actually arrived, the time was actually dropped. As such, when the report runs and the Timesheets are verified, it is only a case of math, to see if they were late / initial / overtime but I have participated in a difficult place:

Most First, if someone calls in sick (or not just shown), then I would have been that the manager only checks for a box for him, and they do not make adjustments at any time. It turns out to be completely black at that time, by setting both the time values ​​of the tap and when any question should be run, then work will be done according to the need of the tap (possibly, time is over and then the time is over Both ends come out for zero at the end), or both of us have come and the time has both been abandoned in the time of "expected end", so that it works on zero?

I do not like to use tap because it just seems like there is no data available, but I do not like to use the expected end of the innings because it feels like they actually arrive They were also going in the same way as

This is really a question of how to make it very complex without making the data semantics. About creating a separate table (ShiftTimes?), The identifier for the employee, an identifier for change (possibly the date, but that third inning ), And "If the employee calls in such a way during entry and exit, there will be no record in the table for that day."


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -