Mike Hughes
Registered User.
- Local time
- Today, 03:05
- Joined
- Mar 23, 2002
- Messages
- 493
When I run this query I get the results of the number of cases in each District that are [CASE TYPE]="A" AND [EST TYPE]="P"
If the District has no cases that meet this criteria the the District is not included in the results.
What I want is to have that District included in the results with the case count of 0.
Would someone please tell me how to do this, if it is possible?
SELECT
[CASE TYPE AND EST].district,
Count([CASE TYPE AND EST].CASE) AS CASES INTO [P]
FROM [CASE TYPE AND EST]
WHERE [CASE TYPE AND EST].[CASE TYPE]="A" AND
[CASE TYPE AND EST].[EST TYPE]="P"
GROUP BY [CASE TYPE AND EST].district, [CASE TYPE AND EST].[CASE TYPE], [CASE TYPE AND EST].[EST TYPE]
ORDER BY [CASE TYPE AND EST].district;
If the District has no cases that meet this criteria the the District is not included in the results.
What I want is to have that District included in the results with the case count of 0.
Would someone please tell me how to do this, if it is possible?
SELECT
[CASE TYPE AND EST].district,
Count([CASE TYPE AND EST].CASE) AS CASES INTO [P]
FROM [CASE TYPE AND EST]
WHERE [CASE TYPE AND EST].[CASE TYPE]="A" AND
[CASE TYPE AND EST].[EST TYPE]="P"
GROUP BY [CASE TYPE AND EST].district, [CASE TYPE AND EST].[CASE TYPE], [CASE TYPE AND EST].[EST TYPE]
ORDER BY [CASE TYPE AND EST].district;