What is the NVL formula used for ?

Printed From: Crystal Reports Book — Forum Name: Technical Questions

Hi everyone,

I'm working on a report that was created by someone else and it has a formula that uses the NVL() fuction. What does that function do exactly?

It goes like this:

nvl(table.field,0)

Thanks a lot,
Santiago
Not familiar with this as a crystal function but I believe it is similar to a coalesce() or isnull() in SQL and it will, in your example, return a 0 when the table.field is null otherwise it returns the value from table.field.
Thanks a lot, it's exactly what the formula's doing.

yes, NVL is Oracle IsNull.
COALESCE is ANSI standard and works in both Oracle and SQL