count distinct not working

Started by Thomas Bock, May 22, 2024, 06:57:37 AM

Previous topic - Next topic

Thomas Bock

I receive an error 15 with

select count(distinct columnName) from table

msg(-1)=37000: [PxPlus][SQL ODBC Driver]Expected lexical element not found: <identifier>

How can I count distinct column values using ODBC 7.0.3?