When I run the following sql query statement it does not format as numeric(10,0)
but numeric(10,3).
If I replace cast(Oct as numeric(10,3)) with null it works.
select case when col='Gallons'
then cast(Oct as numeric(10,0))
else cast(Oct as numeric(10,3))
end as Oct
from (select 'Gallons' as col, 225.00 as Oct) a
Why would it behave in this manner?
