August 30, 2010 at 2:22 am
I have a TSQL Query which selects data from a decimal(25,6) field.
The result has the following format: 25.000000
I want to be: 25,00
How can I cast it and convert it.
Regards,
K
August 30, 2010 at 2:27 am
dint this work?
select cast( 25.000000 as decimal(25,2))
August 30, 2010 at 2:34 am
It returns 25.00 with "." separator.
I want to have comma separator (",")
Any help?
August 30, 2010 at 2:47 am
Probably there is a straight-forward way, but this is what i have come up with :
select replace(cast ( convert(decimal(25,2),25.00) as varchar) , '.' , ',') Comma_Value
August 30, 2010 at 2:52 am
Thanks
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply