nileshcssi
Programmer
I am concatenating two or more data elements (VARCHAR2's) using a formula like this:
When I use this formula, if one of the data elements is null, the entire result of the concatenation is null, even if one of the elements is not null.
The only thing that I have found that works is the following bit of code:
However, I have many fields where I have to apply this, and don't want to implement this piece of code, as it is a bit of a cludge, unless it is my only option. This code will get much worse when I have more than 2 elements to concatenate. Any advice?
Code:
{DB_TABLE.DATA_1} + {DB_TABLE.DATA_2};
The only thing that I have found that works is the following bit of code:
Code:
if isNull({DB_TABLE.DATA_1}) then
{DB_TABLE.DATA_2};
if isNull({DB_TABLE.DATA_2}) then
{DB_TABLE.DATA_1}
else
{DB_TABLE.DATA_1} + {DB_TABLE.DATA_2};