How to count unique values in Access 2003? When i write sth like this:
SELECT DISTINCT Customer FROM CustomersTable;
I've got as result unique customers, but how count them if this code doesn't work:
SELECT COUNT(*)
FROM (SELECT DISTINCT Customer FROM CustomersTable )
(it causes error: "The Microsoft Jet database engine cannot find the input table or query 'SELECT DISTINCT Customer FROM CustomersTable'. Make sure it exists and that its name is spelled correctly")
Example of database
--Customer -- Address --
X NY
X OR
Y AR
Z WA
And I'd like to have as result 3 (three unique Customers.)
Customervalues. Does it work for you? - onedaywhen