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
 
Back
Top