By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,965 Members | 1,170 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,965 IT Pros & Developers. It's quick & easy.

grouping a field in a query

P: n/a
I need help anybody knows how to group a query so I can get a count of
all the same record in a field like a subtotal in excel.

Mar 3 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On 2 Mar 2006 18:50:56 -0800, "vito" <vi********@hotmail.com> wrote:

The "GROUP BY" clause was invented for that purpose. Look it up in the
Help file.

-Tom.

I need help anybody knows how to group a query so I can get a count of
all the same record in a field like a subtotal in excel.


Mar 3 '06 #2

P: n/a
You can use COUNT(*) with a GROUP BY to count them number of records
accourding to your grouping.
You will have to use SUM(fieldname) as (sumname) to add values of a
field together of the selected records.
Open Help and type SELECT and the choose SELECT statement for examples.

Mar 3 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.