Hello again! I'm looking again for opinions on my database design.
In the HR portion, employees accrue leave on a monthly basis. On the first of each month all employees accrue a certain number of hours depending on how long they have been a state employee. Now, an employee can have been an employee of the state for 10 years, but only worked at our courthouse for 1 year. In that situation, there's a field in the employee file, adjusted hire date, that stores when the person actually started working for the state (since the accruals are based on # of years of service with the state). Currently in our crappy database, there are fields that store each person's accrual. For instance, I currently get 10 hours of annual leave each month. When I reach the 3 year mark, that increases to 12. I'm debating on whether I should continue to store that piece of information with each person's record, or in the process that will accrue the leave, have the program calculate how long they have been here and accrue the appropriate amount of time from a look up table:
NoOfYears NoOfHours
0 10
3 12
7 14
any ideas?
les
In the HR portion, employees accrue leave on a monthly basis. On the first of each month all employees accrue a certain number of hours depending on how long they have been a state employee. Now, an employee can have been an employee of the state for 10 years, but only worked at our courthouse for 1 year. In that situation, there's a field in the employee file, adjusted hire date, that stores when the person actually started working for the state (since the accruals are based on # of years of service with the state). Currently in our crappy database, there are fields that store each person's accrual. For instance, I currently get 10 hours of annual leave each month. When I reach the 3 year mark, that increases to 12. I'm debating on whether I should continue to store that piece of information with each person's record, or in the process that will accrue the leave, have the program calculate how long they have been here and accrue the appropriate amount of time from a look up table:
NoOfYears NoOfHours
0 10
3 12
7 14
any ideas?
les