Access SQL string

Cassio

Well-known member
Joined
Nov 30, 2002
Messages
276
Location
Rio de Janeiro
How can I count the total number of rows without repeating the equal rows of a certain column?

SELECT COUNT( DISTINCT field) FROM table

I guess it works on Interbase, but not on access.

Any ideas?

Thanks!
 
But the group by wont return the table total number of rows. It will return the number of rows for each repeated value.
 
I want the total count without the repeated values, it would be like this:

SELECT COUNT(SELECT DISTINCT Field1 FROM Table) FROM Table

It would count how many distinct values are on a certain field.
 
Back
Top