Possible Duplicate:
Remove trailing zeros from decimal in SQL Server
I am trying to use the round function and not show any of the trailing zeroes but still getting some zeroes at the end. I am suppose to get 10.4 but getting something like this:
10.400000
Here is my sql:
select round(AVG(CAST(k.TotalNumberDays AS numeric(12,2))),2) TotalNumber
How can i remove the trailing zeros here? I need to show only 10.4.