Hello,
I need to format output for a decimal value with the leading zeros(total of 6 character long).
Here is the info regarding the column
column_Name Col_A
Col datatype Decimal FORMAT '----.9999
Here is my query:
select G.Col_A
from TABLE_G G
where G.Col_A IS NOT NULL
AND G.Col_A <>''
sample 10
SCENARIO:
the max value for this col is 500.000 and Min value is 1.000.
I want the out put for Max as : 000500
and for MIN : 000001
Fixed length.
Please this is urgent. I always appreciate your help.
thanks
I need to format output for a decimal value with the leading zeros(total of 6 character long).
Here is the info regarding the column
column_Name Col_A
Col datatype Decimal FORMAT '----.9999
Here is my query:
select G.Col_A
from TABLE_G G
where G.Col_A IS NOT NULL
AND G.Col_A <>''
sample 10
SCENARIO:
the max value for this col is 500.000 and Min value is 1.000.
I want the out put for Max as : 000500
and for MIN : 000001
Fixed length.
Please this is urgent. I always appreciate your help.
thanks