Hi,
I want to ask if anybody know the query to drop the 0 value in decimal..
E.g : A field name percent have these values
Percent
770.00000000000000000000, 340.670000000000000000000, 96.00000000000000000000, 4400.56000000000000000000, 109.89000000000000000000, 109.00000000000000000000, 37.00000000000000000000,
Currently I'm using the query "select cast([Percent] as decimal(9,2)) as [Percent] from table" and will result in
Result
770.00, 340.67, 96.00, 4400.56, 109.89, 109.00, 37.00,
I want the result this actually:->
770, 340.67, 96, 4400.56, 109.89, 109, 37,