On Sun, 18 May 2003 23:59:46 -0700, "James Taylor"
<jtx(at)hatesville(dot)com> wrote:
>select case(sum(numbers)) when null then 0 else sum(numbers) end from
>list_results;
>
>That... Doesn't work.
SELECT CASE WHEN SUM(numbers) IS NULL THEN 0 ELSE SUM(numbers) END ...
or
SELECT COALESCE(SUM(numbers), 0) FROM ...
Servus
Manfred