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
Foxpro and using Excel 2010 as an object
SQL Query Help
GP folder redirection. cant turn off
SERVER C drive is running out of space
VB.Net Ineritance question
Self Signed Cert issues with Remote desktop
Mac Mini with Blu-Ray
Adding local storage to ESX 3.5
Hyper v full Installation remote administration issues
Can Windows Server Standard 2008 FE be upgraded to Standard level without breaking Exchange 2007 SP1 currently installed?