I have 3 tables I want to use in a query:
1. Concerned Parties (includes name, phone, etc.)
2. Complaint Records (includes ID, date, name of complainant, BusinessID complained about)
3. Business Addresses (includes BusinessID, Business Address, Region)
There are some complainants who make more than one complaint.
I want to know:
For each region, how many unique complainants called in 2004?
This is my query so far (using annoying design wizard so sorry it is messy).
1. Concerned Parties (includes name, phone, etc.)
2. Complaint Records (includes ID, date, name of complainant, BusinessID complained about)
3. Business Addresses (includes BusinessID, Business Address, Region)
There are some complainants who make more than one complaint.
I want to know:
For each region, how many unique complainants called in 2004?
This is my query so far (using annoying design wizard so sorry it is messy).
Code:
SELECT Count([Concerned Parties].DBName) AS CountOfDBName, [Business Addresses].Region
FROM ([Complaint Records] INNER JOIN [Busness Addresses] ON [Complaint Records].[DBBusinessSite] = [Business Address].[ID String]) INNER JOIN [Concerned Parties] ON [Complaint Records].DBName = [Concerned Parties].DBName
WHERE ((([Complaint Records].DBDate)>#1/1/2004#))
GROUP BY [Business Addresses].Region;
[\code]
But this query only returns the number of complaints for each region, not the number of unique complainants.
Any ideas?
Thanks,
Eadie