145 columns in one table is a bit overkill. Sounds like it might need normalising.
Regarding your question though, there might be a max size of the sql, not sure but if there is then it sounds like you may reach this.
your query would look something like this
select count(*) AS Total
from mytable
where [entrydate - amended] = true
or [birthdate - amended] = true
or ... etc list all your 65 fields
Main Topics
Browse All Topics





by: LSMConsultingPosted on 2009-03-27 at 04:16:37ID: 23999705
What Datatype is this? These should be boolean values.
Assuming you're actually wanting to do this in a Query:
AmendedSum: IIF("[EntryDate-Amended]" = True, 1,0) + IIF("[BirthDate-Amended]" = True, 1, 0) + etc etc
If in a table - that's a bad idea. You should NEVER store calculated values in a Table, since you can easily recreate the data from the "root" values.