[ Charset ISO-8859-1 unsupported, converting... ]
> > 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 :-)
Hey, we didn't design SQL, we just implement it. :-)
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026