In Ad-hoc Query, previewed results do not match COUNT

When Ad-Hoc query results are previewed, the Results state there are a certain number of records.  But when the output is changed to COUNT(Lookup ID), the results are much higher.
Query only looks at the raw data. For this reason, the Preview function shouldn't be used to estimate a COUNT, especially when there is a one-to-many field in the database. Instead, use an SSRS report with a DISTINCT count to get the accurate number of records.

Steps to Duplicate

1) Set up a Constituent Ad-Hoc query with Attributes in the criteria
2) Output Lookup ID, and set ‘suppress duplicate rows’ 
3) Click Preview, take note of the number of results.
4) Change the output to COUNT (Lookup ID), and notice that this value is much higher.

Environment

 Blackbaud CRM
 4.0
 4.0
 4.0.173

Was this article helpful?


Thanks for your feedback! Did this solve your issue?

Comments (optional):


Thanks for your feedback!
We're glad it was helpful but sorry it didn’t solve your issue. If you need assistance, click Chat with Support below.
We’re sorry to hear that. Please tell us why.

 I don't like how this works.

 The answer is confusing.

 The answer didn't match what I was searching for.

Additional Comments (optional):


Thanks for your feedback! If you need assistance, click Chat with Support below.
Thanks for your feedback. Help us make our products even better by sharing details in our Idea Banks or our online Community.
Thanks for letting us know. We'll work on clarifying the information in the article. If you need assistance, click Chat with Support below.
Thanks for letting us know. We'll work on updating the search engine to return more relevant results.