Make sure you understand how data is implicitly cast during calculations.You should read about the subject in SQL Server Books Online, and run tests for yourself, like the code below.select A= gross/divisior, B= convert(numeric(8,2),gross/divisior), C= convert(numeric(8,2),gross)/convert(numeric(8,2),divisior), D= convert(numeric(8,2),gross)/divisior, E= (gross+.0)/divisior, F= gross/(divisior+.0)from (select gross = 66, divisior = 100) a
Results:A B C D E F----------- ---------- ------------- --------------- -------------- ---------------0 .00 .66000000000 .6600000000000 .660000000000 .6600000000000(1 row(s) affected)
CODO ERGO SUM