Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Akis Xenophontos — — source: Informix-list mailing list archive (1991-1998)
E-mail Address: akisx@logica.com
Name: Akis Xenophontos
Company: Logica UK Ltd
Postal Address: London NW1
Tel No: 0044171 446 1324
Date: 16/06/97
I have the following problem:
select sum(a) + sum(b) + sum(c)
from table_a
returns null if columns values b are all null for example.
Is there a way, within one SQL statement, to treat the NULL as a
0 and return the aggregate sum of columns a,b and c?
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.