Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
i have a simple query where I make the sum of multiple colums... However I want to format my result to $999,999,999.99. How can I do this...this is my query.
SELECT SUM ("JUN_F1"."Renta"+"JUN_F1"."Servicios"+"JUN_F1"."TAN"+"JUN_F1"."LDN"+"JUN_F1"."TARN"+"JUN_F1"."LDRN"+"JUN_F1"."TARI"+"JUN_F1"."LDRI"+"JUN_F1"."Paquete_RI") AS AmountFROM public."JUN_F1";
you can do this very easily in your application by using format functions. In SSRS, you already have some standard currency formats or even can give custom expression like ="$###,###,###.#0"------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/