Microsoft
Software
Hardware
Network
Question : Convert/Cast
What is the best way to convert the decimal value: 3.500000000 to a money value eg. 35,000,000.00
the data type is stored in the database as decimal(20,6) and then in the qury its multiplied by a value (1.0000 ..this value varies) ...how can i get it to show as a monetary value.
Thanks!
Answer : Convert/Cast
select cast(cast(fieldname as money)*1,0000) as decimal 10,2) from table
you could also try this....
http://www.siccolo.com/Art
icles/SQLS
cripts/how
-to-create
-sql-
to-fo
rmat-curre
ncy.html
Random Solutions
Which KEY do I use for my KMS Server and clients?
phpmailer errorInfo
XSLT Parsing pairs of xml tags
Prevent Deadlock in Database Coldfusion
interview questions on SSIS
Oracle Error "To many precesion Specifiers"
How to remove new line from a string
SSIS getting data from SQL to Oracle
Blackberry Enterprise Express on Exchange 2007 Can't resolve name during MAPI Profile Setup
Security Alert when Opening Outlook