Format a money field in SQL without converting to varchar?
Posted
by sdmadsen
on Stack Overflow
See other posts from Stack Overflow
or by sdmadsen
Published on 2010-04-12T12:07:08Z
Indexed on
2010/04/12
12:13 UTC
Read the original article
Hit count: 212
I need to be able to display a money field as $XX,XXX.XX, but without converting to varchar using total_eval = '$' + CONVERT(varchar(19),total_eval.opvValueMoney,1)
My project uses sorting of the information after I pull this to sort the column and it doesn't sort correctly when the column is a varchar.
Is there anyway to do this?
© Stack Overflow or respective owner