Query
Code:
select COLA || '|', - String
COLB '|', - Decimal
COLC '|', - String
COLD '|', - Decimal
COLE - String
from TABLEA
Problem is since the decimal datatypes contain records which are numbers they gets converted to char as use char(colb)
Sample Output before conversion
Code:
ABC 48.0000 POP 49.75000 OOO
But when concatenate happens the number changes to like this
Sample Output after conversion
Code:
ABC|000048.0000000|POP|000000049.00000000|OOO
Should be
Code:
ABC|48.0000|POP|49.75000|OOO
Since the 000 are not consistent i can't use a replace function.
What i need is concatenate the record with Pipe Separated but the decimal values should be intact.