dreampolice
Technical User
I am trying to fetch total number of values in a column that are greater than 1 in my Access 2004.
For example the below would show that fieldOne has 1 value greater than the value 1 and fieldTwo has 2 values greater than the value 1:
The below is not working because it only fetches the first one (fieldOne) that has values over 1.
For example the below would show that fieldOne has 1 value greater than the value 1 and fieldTwo has 2 values greater than the value 1:
Code:
fieldOne fieldTwo
1 3
2 1
1 3
The below is not working because it only fetches the first one (fieldOne) that has values over 1.
Code:
select count(fieldOne) as myTot,
count(fieldTwo) as myTot2
from theTable
where
fieldOne > 1
or
fieldTwo > 1