RE: converting a varchar value to decimal

RE: converting a varchar value to decimal

 

  

cast(value / 100 as numeric(##,2))

-----Original Message-----
From: Rashied Mia
[mailto:oracledba-ezmlmshield-x5086606.[Email address protected]
Sent: Thursday, February 28, 2008 3:12 PM
To: LazyDBA Discussion
Subject: converting a varchar value to decimal


Hi

I need some help converting 14950 to 149.50. Whenever i try to cast it gives me 14950.00.. Please assist. Thank you.

--------------------------------------------------------------------------------
Please note: This e-mail and its contents are subject to a disclaimer
which can be viewed at http://www.woolworths.co.za/disclaimer. Should
you be unable to access the link please e-mail [Email address protected]
and a copy of the disclaimer will be e-mailed to you.


---------------------------------------------------------------------
TO REPLY TO EVERYBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
To post a dba job: http://jobs.lazydba.com
To Subscribe : http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html




***********************************************************************
Bear Stearns is not responsible for any recommendation, solicitation,
offer or agreement or any information about any transaction, customer
account or account activity contained in this communication.
***********************************************************************

Oracle LazyDBA home page