Link to home
Start Free TrialLog in
Avatar of W D
W DFlag for United States of America

asked on

Coalesce returning NULL if arguments not found

Hi there,

If all arguments are NULL, does COALESCE return NULL in Oracle?
ASKER CERTIFIED SOLUTION
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
just for grins,  I tested more nulls.

it works up to 65535 null inputs ( returning NULL) at 65536 or more you'll get an
ORA-00939 error  which isn't documented in the Error Messages book, but the text is pretty clear "too many arguments for function"
I'm surprised you were able to test that many since, I think, the decode and case arguments are limited to 255. For more grins, I wonder if the coalesce statements could be nested like case statements to manage more arguments.