Z
Zilla
Hi,
i have a query with two fields, IND_ID and Contact_ID, looking like this:
IND_ID Contact_ID
1 5
1 17
1 22
2 7
3 10
3 11
I want to count the number of Contact_ID's for each unique IND_ID, BUT the
result I get doubles the count, ie:
IND_ID CountofContact_ID
1 6
2 2
3 4
What is going on here?
My SQL is:
SELECT qryRdistrict_1A_1B.IND_ID, Count(qryRdistrict_1A_1B.contactID) AS
contact
FROM qryRdistrict_1A_1B
GROUP BY qryRdistrict_1A_1B.IND_ID;
This is driving me crazy, and is a problem I have often, any help greatly
appreciated
i have a query with two fields, IND_ID and Contact_ID, looking like this:
IND_ID Contact_ID
1 5
1 17
1 22
2 7
3 10
3 11
I want to count the number of Contact_ID's for each unique IND_ID, BUT the
result I get doubles the count, ie:
IND_ID CountofContact_ID
1 6
2 2
3 4
What is going on here?
My SQL is:
SELECT qryRdistrict_1A_1B.IND_ID, Count(qryRdistrict_1A_1B.contactID) AS
contact
FROM qryRdistrict_1A_1B
GROUP BY qryRdistrict_1A_1B.IND_ID;
This is driving me crazy, and is a problem I have often, any help greatly
appreciated