If you know the size of the number (in position count not value) you can use the 
RPAD(sum(field),count,0) to populate the right end of the return value to zero.  
ex. the sum value is = 2.5 and you want 2.50 rpad(sum(fd1,4,'0') return 2.50

BUT if the return value = 25.5 and you want 25.50 and have used the 2.50 
rpad(sum(fd1,4,'0')  the return 25.5  will be returned. You could always use
2.50 rpad(sum(fd1,6,'0') and then drop the unneeded zeroes.
ROR mª¿ªm

>>> [EMAIL PROTECTED] 05/31/01 12:21PM >>>
I have a select statement that is pulling a field called total, which
represents a total value to charge a persons account. The total column in
the db has the parameters Number(10,2) but when I pull the data out of the
db the value for the total 26.50 looks like this 26.5. Is there away to
force the data being pulled out to maintain the format 26.50?

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: Keith Myers
  INET: [EMAIL PROTECTED] 

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Ron Rogers
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to