L
Luther
Hello,
I have a query like this:
SELECT Sum(IIf([Source1]="03A",1,0)) AS HowMany, Count(*)
AS TotalRecords, [HowMany]/[TotalRecords] AS PercentUpdated
FROM HiPlanNames;
What I would like to do is:
- scan 6 fields (Source1 - Source6) and find the value
03A and add them up. Basically, this value can be in any
of these fields; there won't be no duplicates.
- the trick is that I have to do this for 8 more values
(03B, 03C, 03D etc..), calculate the percent and display
them like this (a table would be just fine):
03A 200 10.0%
03B 120 12.0%
Any help would be greatly appreciated. Thanks.
I have a query like this:
SELECT Sum(IIf([Source1]="03A",1,0)) AS HowMany, Count(*)
AS TotalRecords, [HowMany]/[TotalRecords] AS PercentUpdated
FROM HiPlanNames;
What I would like to do is:
- scan 6 fields (Source1 - Source6) and find the value
03A and add them up. Basically, this value can be in any
of these fields; there won't be no duplicates.
- the trick is that I have to do this for 8 more values
(03B, 03C, 03D etc..), calculate the percent and display
them like this (a table would be just fine):
03A 200 10.0%
03B 120 12.0%
Any help would be greatly appreciated. Thanks.