Subject Re: [firebird-support] Re: Problem with LEFT OUTER JOIN and COUNT()
Author Helen Borrie
At 11:47 PM 10/04/2006, you wrote:
>So simple ^^
>
>Thanx a lot man, this did the trick:
>
>SELECT COUNT(DISTINCT N.CUPOM)
>
>Cause N.CUPOM is my primary key, and thats all that matters :)

True; and DISTINCT never counts nulls.

./heLen