Avatar of Lawrence Salvucci
Lawrence Salvucci
Flag for United States of America

asked on 

Format to Currency with Comma in SQL Server Query

I've been on a formatting binge today with my query! I need to format this to currency but it also needs to include the comma (eg $2,000.00 instead of $2000.00). Right now I have it formatting as $2000.00 but I want the comma included. How can I tweak this to format it with the comma?

CASE WHEN LEFT(dbo.jomast.fjobno, 1) <> 'I' THEN '$' + CONVERT(varchar(20), 
                         CONVERT(money, dbo.sorels.funetprice * dbo.sorels.forderqty)) ELSE '0' END AS ExtPrice

Open in new window

Microsoft SQL Server

Avatar of undefined
Last Comment
Lawrence Salvucci

8/22/2022 - Mon