I am trying to count the distinct Client ID numbers from results of searching a view of grants to clients. The Search Form can limit the results to a specific range of dates or a specific Agency making the contribution, so not ALL the possible client grants.
SELECT COUNT(DISTINCT [@field:ClientID]) FROM _v_tblAgencyContribution I get a count of all client IDs in the entire view. I just want a count of the distinct Client IDs in the results.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
skcombs
I am trying to count the distinct Client ID numbers from results of searching a view of grants to clients. The Search Form can limit the results to a specific range of dates or a specific Agency making the contribution, so not ALL the possible client grants.
SELECT COUNT(DISTINCT [@field:ClientID]) FROM _v_tblAgencyContribution I get a count of all client IDs in the entire view. I just want a count of the distinct Client IDs in the results.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.