G
Guest
The problem:
What i want to come back out of the query is
Directorate :: Sum of the Absences for this Directorate where length = short
term :: Total records summed :: sum of the Absences for Long term :: Total
records summed
Directorate is in one table, JobSpecs, linked to Job, which is then linked
to the personnell and through to the absences.
What I tried was having a set of linked querys
1: works out whether they are long term or short term
2: Takes the short term ones
3: sums for each person
4: sums for each directorate and gives me the total number of people
(although it is not unique people, which is another problem.
then we have:
5: take the long term ones
6: sums for each person
7: sums for each directorate and has the total number of people
they both have directorate in, but when I try and create a query linking
these two things together it says that there is no link at all. which is
annoying. I can't work out why or how to do it any differently. Tried havign
everything calculate in one query, but it only picks up one directorate
rather than them all.
Any advice?
What i want to come back out of the query is
Directorate :: Sum of the Absences for this Directorate where length = short
term :: Total records summed :: sum of the Absences for Long term :: Total
records summed
Directorate is in one table, JobSpecs, linked to Job, which is then linked
to the personnell and through to the absences.
What I tried was having a set of linked querys
1: works out whether they are long term or short term
2: Takes the short term ones
3: sums for each person
4: sums for each directorate and gives me the total number of people
(although it is not unique people, which is another problem.
then we have:
5: take the long term ones
6: sums for each person
7: sums for each directorate and has the total number of people
they both have directorate in, but when I try and create a query linking
these two things together it says that there is no link at all. which is
annoying. I can't work out why or how to do it any differently. Tried havign
everything calculate in one query, but it only picks up one directorate
rather than them all.
Any advice?