Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error when using "COUNT(DISTINCT Field1)" through ODBC

Status
Not open for further replies.

StevenK

Programmer
Jan 5, 2001
1,294
GB
I'm getting errors when I try and perform a COUNT of DISTINCT records from a Paradox table through means of an ODBC connection (through C#.NET code application).
The application will happily let me perform a standard issue 'SELECT COUNT(Field1) FROM Table1' against Paradox tables through this mean.
When I try and extend this to something like 'SELECT COUNT(DISTINCT Field1) FROM Table1' I get an error :
"ERROR [42000] [Microsoft][ODBC Paradox Driver] Syntax error (missing operator) in query expression 'COUNT (DISTINCT Field1)'." ...

Can anyone explain why I would be getting this ?

And furthermore can I work around this to obtain my COUNT of DISTINCT entries ?

Thanks in advance
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top