sql - Aggregating Boolean Data in Access -


is there accepted/better method aggregate boolean data in access query?

i have 2 related tables, first table contains grouped summary of data second. 1 of fields in second table boolean yes/no flag indicating row requires 'attention'.

i planning on performing or across rows of second table , storing result in first table indicate 'at least one' of associated rows table 2 needs 'attention'.

i see access stores false 0 , true -1 , have used sum/group , seem have achieved result aiming for. each true value (-1) sums , gives me negative number access seems happy interpret true. notice there doesn't seem way perform , operation (multiplication?) made me think method i'm using bit of hack , may have unintended consequences.

why not using sum(-myflag)and compare count(*) ? can test both figures equal.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -