hi, im trying to make a query to get the total of values that are "true" in many bit fields.
for example, my table is like this:
id chk1 chk2 chk3
2 1 1 1
3 1 0 0
4 0 1 0
5 0 1 1
and i need the result to be:
2 3 2
grouped by date..
how can i count only the fields that are 1??
thank you very much
Eli
for example, my table is like this:
id chk1 chk2 chk3
2 1 1 1
3 1 0 0
4 0 1 0
5 0 1 1
and i need the result to be:
2 3 2
grouped by date..
how can i count only the fields that are 1??
thank you very much
Eli