Count(*) will return a grand total, providing that is the only column you
selected.

select count(*)
from itemmaster;

However, if you do something like this:
select itemNumber, count(*)
from itemmaster
Then you are going to get each row.

There is a way to get subtotals.
Select ItemClass, count(*)
from itemmaster
Group By ItemClass;

There are also ways to get multiple levels of control breaks using things
like CUBE and ROLLUP.

Rob Berendt

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.