SQL function for convert 99999 to 99,999.000

  • Hello Friends,

    I want to convert 99999 to 99,999.000.

    Is any sql function is exists for above conversation??

    Thanks

  • i've got this saved in my snippets, but it would add only two decimal places, not three...does that matter to you?

    results

    @test-2 formatted

    7265342 7,265,342.00

    declare @test-2 float

    set @test-2 = 7265342

    select @test-2, convert(varchar(20),cast(@test as money),1)

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • Thanks a lot dear.....

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply