Re: Output !
- From: "Rogers" <naissani@xxxxxxxxxxx>
- Date: Tue, 24 Jan 2006 11:06:33 -0500
Thanks dear !
"Sue Hoegemeier" <Sue_H@xxxxxxxxxxxxx> wrote in message
news:nagat119buf4sdbmbfnq3o035ag2am0g19@xxxxxxxxxx
> Formatting is typically better off done on the client side.
> Otherwise, you need to convert or cast the value to money to
> get what you are after. Something like:
> DECLARE @YourValue integer
> SET @YourValue = 145263
> SELECT reverse(substring(reverse(convert(varchar, cast
> (@YourValue as money), 1)),
> 4, 30))
>
> -Sue
>
> On Mon, 23 Jan 2006 14:00:54 -0500, "Rogers"
> <naissani@xxxxxxxxxxx> wrote:
>
>>
>>I have a colunms which contain all the numeric data I want to change the
>>format in the runtime like
>>
>>145263 that should be like 145,263.
>>
>>Is there any way to do through sql query?
>>
>>Thanks
>>
>
.
- References:
- Output !
- From: Rogers
- Re: Output !
- From: Sue Hoegemeier
- Output !
- Prev by Date: Re: Output !
- Next by Date: Can BSM connect to SQL Server 2005 AS UDM's?
- Previous by thread: Re: Output !
- Next by thread: Can BSM connect to SQL Server 2005 AS UDM's?
- Index(es):
Relevant Pages
|
Loading