November 20, 2009 at 2:02 pm
Hi all
I have a query to get % from two summed columns it gives me correct % but the zeros are not going off, even if I use round function.
here is the code
select round(((555* 1.00) /1203) * 100 ,2)
any help to remove these zeros...
thanks
Thanks [/font]
November 20, 2009 at 2:23 pm
Something like this would work
declare @variable float
set @variable = round(((555* 1.0) /1203) * 100 ,2)
select @variable
November 20, 2009 at 6:35 pm
SQL Learner-684602 (11/20/2009)
Hi allI have a query to get % from two summed columns it gives me correct % but the zeros are not going off, even if I use round function.
here is the code
select round(((555* 1.00) /1203) * 100 ,2)
any help to remove these zeros...
thanks
Do you want 2 decimal place zero's to show up if the answer is a whole number?
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply