To display null value with user specified name either Null or br1 etc

2 views
Skip to first unread message

Jeya Bright

unread,
Feb 25, 2011, 8:20:51 PM2/25/11
to bat...@googlegroups.com, fir...@googlegroups.com, mainfr...@googlegroups.com, mainfr...@googlegroups.com, mapl...@googlegroups.com, cmcmfc...@yahoogroups.com, mapleses...@yahoogroups.co.in, maples...@googlegroups.com
Dear students,

One of the student raised this question

In a table when i fetch data it comes with some rows with data and
some rows with null.

ie
EMPNO

aaaaa
bbbbb
ccccc
--------
--------
ddddd
eeeee

like this...ie after row ccccc it is having null displayed as --------

The Question is i want these null value should be displayed in word as NULL
How you do it?

Soln:-

In db2 there is a function called value

SELECT VALUE(EMPNO,'NULL') FROM EMP

Regards,
P.Jeya Bright
Porur,
chennai-600116
PH:044-22522560
Mob:9941540250

Reply all
Reply to author
Forward
0 new messages