I'm not sure how to formulate this query. I have a table of clients and several attribute fields that contain either a "1" or a "0" (to identify yes/no). To keep it simple, I need to know the count of clients who fit more than one of those attributes.
Just a guess, but perhaps a query could add up the 1s and 0s for each client, and count the totals that are 2 or above.
Here is a sample of the table:
In the sample table above, the query would return the number "2" because 2 clients (Joe & Bob) have a "1" in at least two attributes.
Thanks in advance for your help.
Just a guess, but perhaps a query could add up the 1s and 0s for each client, and count the totals that are 2 or above.
Here is a sample of the table:
Code:
Table: Client
Name|Attr_a|Attr_b|Attr_c|Attr_d|
---------------------------------
Joe | 1 | 0 | 1 | 0 |
Jill| 0 | 0 | 1 | 0 |
Bob | 1 | 1 | 1 | 1 |
In the sample table above, the query would return the number "2" because 2 clients (Joe & Bob) have a "1" in at least two attributes.
Thanks in advance for your help.