I need to round all incoming data with type DECIMAL(14,3) , which has 3 decimal digits to the last. I.e:.
100; 100.0; 100.00; 100.000 -> 100 100.2; 100.02; 100.20; 100.22 -> 100.xx
but
100.221 -> 100.22 100.229 -> 100.22
With which SQL statement can I verify that the remainder of the division in the decimal digit is greater than zero?
operators sql tsql sql-server-2008
abatishchev
source share