Query Count

pwoodj

Registered User.
Local time
Today, 11:09
Joined
Mar 9, 2005
Messages
19
I had no luck searching for this, maybe I could get some help.

I have a column, which contains values of "A" and "T", I need to have a count of all the "A" a "T" records.

I have no experience with expressions, so any help would be great !!

thanx
pete
 
One way:

SELECT Sum(IIf([FieldName]="T",1,0)) AS CountOfT, Sum(IIf([FieldName]="A",1,0)) AS CountOfA
FROM TableName;
 

Users who are viewing this thread

Back
Top Bottom