Subject Re: SUM function returns NULL if no Records, Need it to return 0
Author zaher dirkey
--- In firebird-support@yahoogroups.com, Robert martin <rob@...> wrote:
>
> HAVING
> SUM(COALESCE(Amount, 0)) > 0
>
>

I prefer

HAVING
COALESCE(SUM(Amount), 0) > 0