alktrigger
Aimless Extraordinaire
- Local time
- Today, 17:11
- Joined
- Jun 9, 2009
- Messages
- 124
I am having issues with creating a counting function that counts only fields that meet the > 0 criteria. The columns consist of only numerical data and some null values. What do I need to change for the count function to work with my criteria?
This is the SQL provided by the query. I can see the issue with the ">0" statement being outside the count function, but when I fix the order of operation in the second set of code, same result
This is the SQL provided by the query. I can see the issue with the ">0" statement being outside the count function, but when I fix the order of operation in the second set of code, same result
Code:
SELECT Count(tblReportDump.Wk1) AS CountOfWk1
FROM tblReportDump
HAVING (((Count(tblReportDump.Wk1))>0));
Code:
SELECT Count(tblReportDump.Wk1) AS CountOfWk1
FROM tblReportDump
HAVING ((Count((tblReportDump.Wk1)>0)));