junaid malik <junaidmalik14(at)gmail(dot)com> 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