I
I
Igor_Ch2014-03-21 09:30:43
SQL
Igor_Ch, 2014-03-21 09:30:43

Development of a working time accounting system. At what level to implement the logic?

Hello.
He began to develop a system for recording the working time of employees. The database stores information about employees (name, card key, work schedule (beginning / end of the working day, lunch)) and passages (date, time, direction (entry / exit)).
Based on these data, it is required to calculate how long each employee was inside the controlled perimeter, taking into account his work schedule. The system is an application on asp.net web forms.
Where is it better to implement time counting: inside the application itself or in a sql query?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pelmen, 2014-03-21
@Igor_Ch

The server must count. The application should only be an interface to the user.

V
v_prom, 2014-03-21
@v_prom

It would be easier for me to do this in the application, but if you know sql well, then you can write a trigger that fires when a person leaves the territory and counts the time.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question