Null Value [message #309512] |
Thu, 27 March 2008 14:22 |
aarti81
Messages: 235 Registered: December 2007 Location: USA
|
Senior Member |
|
|
Hi
I have the following fields
field1 field2 field3 field4
Now when i run the report, its running good ecxcept for there are some null values in field3 which need to be replaces by "abc"
Any ideas or pointers as to tackel this. I know how to replace the null values for the whole work sheet , but here i just need to do that for field3.
Thanks
|
|
|
|
Re: Null Value [message #309519 is a reply to message #309514] |
Thu, 27 March 2008 14:46 |
aarti81
Messages: 235 Registered: December 2007 Location: USA
|
Senior Member |
|
|
You have an option, in worksheet properties, where it asks you
Show NULL Value as :
But that replaces all the null values on the worksheet, not just a single field.
|
|
|
|
|
|
Re: Null Value [message #309678 is a reply to message #309512] |
Fri, 28 March 2008 07:51 |
aarti81
Messages: 235 Registered: December 2007 Location: USA
|
Senior Member |
|
|
Thank You all
But we can use the NVL for the same datatypes and here i'm replacing a number with text.
Thanks
|
|
|
Re: Null Value [message #309680 is a reply to message #309678] |
Fri, 28 March 2008 07:55 |
skooman
Messages: 913 Registered: March 2005 Location: Netherlands
|
Senior Member |
|
|
Good point.
You're relying on implicit conversion then (that's when the database decised to perform a to_char, although you didn't explicitely tell it to do so).
Could be a bit tricky, for example when your calculation is used for other purposes sometime in the future), so it's better to do something like:
nvl(to_char(<your number column>,'abc'))
|
|
|
|