Pusher
BEOGRAD Put
- Local time
- Today, 06:35
- Joined
- May 25, 2011
- Messages
- 230
Hi all,
I have a query that counts by month. It works fine when you count separately the yes/no field and is not null field but when I try to put them in the same query I get the same number in both counting fields.
Is there a way for this to work?
Thanks
I have a query that counts by month. It works fine when you count separately the yes/no field and is not null field but when I try to put them in the same query I get the same number in both counting fields.
Is there a way for this to work?
Thanks
Code:
SELECT Month([DATUM_IZVESTAJA]) AS MESEC, Count("ID_GRESKE") AS [BROJ ISPADA], Count("HAVARIJA") AS [BROJ HAVARIJA]
FROM IZVESTAJ
WHERE (((IZVESTAJ.HAVARIJA)=True)) OR (((IZVESTAJ.ID_GRESKE) Is Not Null))
GROUP BY Month([DATUM_IZVESTAJA]);