
Originally Posted by
BLD21
I need to show by COMPANY the Total count of DECISION CODES and of those the Total count that were "REJECT".
this can be done such as:
Code:
select company, count(codes) as whatever
from ....
group by company
where codes = ''reject''

Originally Posted by
BLD21
I would then like to take the Total Reject and / Total Number for a percentage.
couldn't this be done in one query, without even needing the one above??
for instance:
[CODE]
Code:
select distinct company,
dsum("codes", "table", "[company] = '" & [company] & "'") as totalcount,
dsum("codes", "table", "[company] = '" & [company] & "' AND
[codes] = 'reject'") as totalrejected,
([totalrejected] / [totalcount]) as percentage
from table
just an idea...