I have an employee database .
It has two main tables. Employee Info and other one Details about Types of Leave Taken,number of hours and date on which it was taken.
If I want to sum the total for each employee all the types of leave that was taken over a period of time - month or year - what would be the best way to do it . Right now I have queries set up for each type of leave and their sums so about 20 different queries.
What would be the simplest / most effective way to do it ?
It has two main tables. Employee Info and other one Details about Types of Leave Taken,number of hours and date on which it was taken.
If I want to sum the total for each employee all the types of leave that was taken over a period of time - month or year - what would be the best way to do it . Right now I have queries set up for each type of leave and their sums so about 20 different queries.
What would be the simplest / most effective way to do it ?