Sum Miscalculation Help

R

Ray Todd Jr

I've created a temporary database to do some quick calculations. It hasn't
turned out too quick, however.

The sum and count functions are taking the totals and multiplying by 2.
What do I have in the query that would muliply the totals by 2?

here is the sql:

SELECT taBusinessTaxAssessments.[Acct #], Sum([Tax Due]) AS TotalTaxDue,
Count(taBusinessTaxAssessments.[Acct #]) AS NumberofAccts
FROM taBusinessTaxAssessments
GROUP BY taBusinessTaxAssessments.[Acct #]

Thanks,

Ray.
 
M

Marshall Barton

Ray said:
I've created a temporary database to do some quick calculations. It hasn't
turned out too quick, however.

The sum and count functions are taking the totals and multiplying by 2.
What do I have in the query that would muliply the totals by 2?

here is the sql:

SELECT taBusinessTaxAssessments.[Acct #], Sum([Tax Due]) AS TotalTaxDue,
Count(taBusinessTaxAssessments.[Acct #]) AS NumberofAccts
FROM taBusinessTaxAssessments
GROUP BY taBusinessTaxAssessments.[Acct #]


Nothing wrong with that SQL. It sounds like your table has
a lot of duplicate records.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top