this returns results for each counrty such as
EmployeeCount, Country
34, FR
5, GB
How can I get a total of all countries say 39 in this case, on one line?
So if it's not USA then give me one record with the total of 39, instead of each in a separate record?
EmployeeCount
39
If I leave out the Country in the Group by it gives error.. left out country as part of aggregate.
DougP
EmployeeCount, Country
34, FR
5, GB
How can I get a total of all countries say 39 in this case, on one line?
So if it's not USA then give me one record with the total of 39, instead of each in a separate record?
EmployeeCount
39
If I leave out the Country in the Group by it gives error.. left out country as part of aggregate.
Code:
SELECT .Report1, Count(Report1) AS EmployeeCount, [Empl/Conr]
FROM [ReportTree$]
GROUP BY Report1, [Empl/Conr],Country
HAVING (((Empl/Conr])='Employee') AND (([Report1])=Lname, fname) AND (([Country])<>'USA'));
DougP