The MOD function in T/SQL is actually the % which is the modulo operator.
From Books OnLine:
<pre>Returns the remainder of one number divided by another.
SELECT 38 / 5 AS Integer, 38 % 5 AS Remainder ;</pre>
The ROUND function takes a number with a decimal place and rounds it to the nearest while number.
<pre>SELECT ROUND(123.9994, 3), ROUND(123.9995, 3)</pre>
Last Wiki Answer Submitted: July 8, 2008 6:38 pm by Denny Cherry64,520 pts.
All Answer Wiki Contributors: Denny Cherry64,520 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
Check out my SQL Server blog “SQL Server with Mr Denny” for more SQL Server information.