RE: COUNT DISTINCT - Mailing list pgsql-general

From Eric Jain
Subject RE: COUNT DISTINCT
Date
Msg-id NCBBJFHBEGOIAHBCBNCLAEFHCJAA.jain@gmx.net
Whole thread Raw
In response to RE: COUNT DISTINCT  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Responses Re: COUNT DISTINCT
List pgsql-general
> Depending on what you want, you might be able to just get away with
> using coalesce on each of them...
>
> select count (distinct ( coalesce(text(advert_no), 'NULL') ||
> coalesce(text(pool_id), 'NULL' ) ) ) from redirect;

Great... This works perfectly. A bit of a monster though :-)


--
Eric Jain


pgsql-general by date:

Previous
From: Jurgen Defurne
Date:
Subject: Re: Parallel databases?
Next
From: jprem
Date:
Subject: urgent help on function/trigger