Re: Calculating percentages from COUNT?
- From: Jay <spam@xxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 05 Mar 2007 19:31:50 +0000
Thanks Marshall,
I don't really understand you (please forgive my newbie stumblings)
Do you mean do the total count in another query and then use that field in my original query?
Thanks,
Jason
Marshall Barton wrote:
Jay wrote:.
I have a very simple Totals query which counts the number of enquiries for each customer, grouping by the customer field and counting the customerID field.
I want to be able to give the count as a percentage of the total number of enquiries. How do I do this?
Use a subquery to calculate the total count. set your
percent column to something like:
Count(*) / (SELECT Count(*) FROM table)
- Follow-Ups:
- Re: Calculating percentages from COUNT?
- From: Marshall Barton
- Re: Calculating percentages from COUNT?
- References:
- Calculating percentages from COUNT?
- From: Jay
- Re: Calculating percentages from COUNT?
- From: Marshall Barton
- Calculating percentages from COUNT?
- Prev by Date: Re: Can I create multiple queries using a script or command line?
- Next by Date: Re: Multiple Queries with Multiple Fields
- Previous by thread: Re: Calculating percentages from COUNT?
- Next by thread: Re: Calculating percentages from COUNT?
- Index(es):
Relevant Pages
|