About
Pricing
Community
Teams
Start Free Trial
Log in
Varshini S
asked on
11/23/2015
SQL query output only need two decimal places
select convert(varchar,totalamt ) as TotalAmount from table1
Output: 18882.019
15882.050
8078.816
I need the output in the following format (need only two decimal places). How do i achieve this ?
18882.01
15882.05
8078.81
Microsoft SQL Server 2008
7
1
Last Comment
PortletPaul
8/22/2022 - Mon