Groups | Blog | Home
all groups > sql server data mining > march 2005 >

sql server data mining : Convert from numeric to currency



Brent
3/30/2005 12:11:11 PM
Hello.. I'm trying to convert a numeric value to a monetary format. Take my
query "Select 1000 As MyNumber" for example. This obviously returns 1000. I'd
like to return $1,000. When I run "Select Convert(Money,1000) As MyNumber",
Brent
3/30/2005 12:29:04 PM
Well, I seemed to have figured it out. For anyone interested, the following
will work "SELECT CONVERT(varchar, CAST(1000 AS money), 1) AS mynumber".
Thanks..

[quoted text, click to view]
AddThis Social Bookmark Button