junaid malik <[email protected]> writes: > Is there any alternative of mysql function COUNT(DISTINCT expr, > [expr...]) in postgres. We get error if we
The SQL-standard way to do that would be
select count(*) from (select distinct expr,expr,... from ...) as ss;
COUNT with multiple arguments is not anywhere in the standard.
regards, tom lane
--
Sent via pgsql-general mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
