distinctive count

  • Thread starter Thread starter -00Eric Clapton
  • Start date Start date
0

-00Eric Clapton

Hi,

How do I do a distinctive count on a query using group-by option
in Access 97? Thanks.
 
Hi,

You can try with a crosstab.


TRANSFORM COUNT(*) as theValue
SELECT theGroup,
COUNT(*) as totalCount,
COUNT(theValue) As distinctCount
FROM myTable
GROUP BY theGroup
PIVOT theCountedField IN(null)



Hoping it may help,
Vanderghast, Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top