Your proposed solution is a good one. his gets you past the redundancy of
putting an employee's pay rate with each and every project. You can the
write and SQL query that will give you the pay rates in effect for any point
in time and use that when you calculate project costs for a given point in
time.
--
Tom
----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Toronto, ON Canada
..
[quoted text, click to view] "Lefteris Kororos" <lkororos@gmail.com> wrote in message
news:1146758556.656277.123080@j73g2000cwa.googlegroups.com...
I am developing an application in VB.NET to produce some reports. The
back-end DB is an MS Access db. I have a table with the details of
employees, a table with several projects, and a table with details for
a specific month for each project.
Due to the nature of the paying scheme of the employees, their pay rate
does not change often. It is based on how many years they have been
working and changes every three years. As a result the details for the
employees also contain their pay rate.
The problem I am facing is that when an employee's pay rate changes
after say three years, changing this value in his/hers details, will
also change the ratre used in all the projects the particular employee
has worked in to this point. Therefore the costing history of the
projects is lost.
Any ideas of how to go about solving this problem.
One way I have thought of, is to have a seperate table with pay rates
which will have the effective date for the salary of each employee as
well as the employee's id and rate. Then I can choose the appropriate
salary based on the month of the project and the effective date of the
salary.
Does this solution make any sense? Does anyone have any better ideas?
Thanks,
Lefteris